aboutsummaryrefslogtreecommitdiff
path: root/dist/js
diff options
context:
space:
mode:
Diffstat (limited to 'dist/js')
-rw-r--r--dist/js/pdf-view.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/dist/js/pdf-view.js b/dist/js/pdf-view.js
index 51251dce..b002085e 100644
--- a/dist/js/pdf-view.js
+++ b/dist/js/pdf-view.js
@@ -44,9 +44,6 @@ function renderPage(canvas,num) {
44 } 44 }
45 }); 45 });
46 }); 46 });
47
48 // Update page counters
49 document.getElementById('page_num').textContent = pageNum;
50} 47}
51 48
52/** 49/**
@@ -96,5 +93,6 @@ PDFJS.getDocument(url).then(function(pdfDoc_) {
96 pdfDoc = pdfDoc_; 93 pdfDoc = pdfDoc_;
97 94
98 // Initial/first page rendering 95 // Initial/first page rendering
99 renderPage(pageNum); 96 renderPage(canvasLeft,pageNum);
97 renderPage(canvasRight,pageNum + 1);
100}); 98});