From bd29a030e52b223fa8488bdd149fe37a16dcc051 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 15 Jan 2020 18:09:47 -0700 Subject: [PATCH] Make sure that the imageWasShown message always gets posted, even if the web view got reloaded. Issue #1586 --- iOS/Resources/main_ios.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iOS/Resources/main_ios.js b/iOS/Resources/main_ios.js index c7568e111..ad26f5ceb 100644 --- a/iOS/Resources/main_ios.js +++ b/iOS/Resources/main_ios.js @@ -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.