Skip to content

Commit

Permalink
try again
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Jan 3, 2025
1 parent 8a9ec47 commit 939f6da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pdf2htmlEX/share/pdf2htmlEX.js.in
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 939f6da

Please sign in to comment.