summaryrefslogtreecommitdiff
path: root/dist
diff options
context:
space:
mode:
Diffstat (limited to 'dist')
-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) {
}
});
});
-
- // Update page counters
- document.getElementById('page_num').textContent = pageNum;
}
/**
@@ -96,5 +93,6 @@ PDFJS.getDocument(url).then(function(pdfDoc_) {
pdfDoc = pdfDoc_;
// Initial/first page rendering
- renderPage(pageNum);
+ renderPage(canvasLeft,pageNum);
+ renderPage(canvasRight,pageNum + 1);
});