Skip to content

Commit

Permalink
fix silly
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Jan 3, 2025
1 parent 5114984 commit b2bfeb5
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions pdf2htmlEX/share/pdf2htmlEX.js.in
Original file line number Diff line number Diff line change
Expand Up @@ -342,20 +342,16 @@ Viewer.prototype = {
for (var i = 0; i < images.length; i++) {
var image = images[i];
(function(image) {
image.addEventListener('load', function() {
image.addEventListener('error', function() {
console.debug('image load error, retry in 1s', image);
setTimeout(function() {
console.debug('retrying image load', image);
var tmp = image.src;
image.src = '';
image.src = tmp;
image.src = image.src;
}, 1000);
});
})(image);
console.debug('image reload', image);
var tmp = image.src;
image.src = '';
image.src = tmp;
image.src = image.src;
}
}
},
Expand Down

0 comments on commit b2bfeb5

Please sign in to comment.