1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-20 23:28:06 +02:00

Fix the display of the indeterminate progress bar when the loaded percentage is NaN (issue 4696)

This commit is contained in:
Jonas Jenwald 2014-04-27 22:11:25 +02:00
parent 002d55ff8f
commit 51d6ad7176

View file

@ -887,7 +887,7 @@ var PDFView = {
// that we discard some of the loaded data. This can cause the loading
// bar to move backwards. So prevent this by only updating the bar if it
// increases.
if (percent > PDFView.loadingBar.percent) {
if (percent > PDFView.loadingBar.percent || isNaN(percent)) {
PDFView.loadingBar.percent = percent;
}
},