From 939f6da4af385022067e24782605e2500ea0edb8 Mon Sep 17 00:00:00 2001 From: Andreas Stefl Date: Fri, 3 Jan 2025 16:17:07 +0100 Subject: [PATCH] try again --- pdf2htmlEX/share/pdf2htmlEX.js.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdf2htmlEX/share/pdf2htmlEX.js.in b/pdf2htmlEX/share/pdf2htmlEX.js.in index 8a7dec85..64838947 100644 --- a/pdf2htmlEX/share/pdf2htmlEX.js.in +++ b/pdf2htmlEX/share/pdf2htmlEX.js.in @@ -337,18 +337,18 @@ Viewer.prototype = { this.render(); { - // deal with image reloading + // deal with delayed image loading var images = document.getElementsByTagName('img'); for (var i = 0; i < images.length; i++) { var image = images[i]; image.addEventListener('error', function() { setTimeout(function() { - tmp = image.src; + var tmp = image.src; image.src = ''; image.src = tmp; }, 1000); }); - tmp = image.src; + var tmp = image.src; image.src = ''; image.src = tmp; }