From 51d6ad7176a6585fc604939d6374651cfa226973 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Sun, 27 Apr 2014 22:11:25 +0200 Subject: [PATCH] Fix the display of the indeterminate progress bar when the loaded percentage is NaN (issue 4696) --- web/viewer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/viewer.js b/web/viewer.js index c44ca8dd4..14b72bdb6 100644 --- a/web/viewer.js +++ b/web/viewer.js @@ -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; } },