Make sure that the imageWasShown message always gets posted, even if the web view got reloaded. Issue #1586

This commit is contained in:
Maurice Parker 2020-01-15 18:09:47 -07:00
parent d68eccc55e
commit bd29a030e5
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,6 @@ class ImageViewer {
showImage() {
this.img.style.opacity = 1
window.webkit.messageHandlers.imageWasShown.postMessage("");
}
showLoadingIndicator() {
@ -129,6 +128,7 @@ function showClickedImage() {
if (activeImageViewer) {
activeImageViewer.showImage();
}
window.webkit.messageHandlers.imageWasShown.postMessage("");
}
// Add the playsinline attribute to any HTML5 videos that don"t have it.