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; }