mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 23:28:06 +02:00
Merge pull request #5721 from Snuffleupagus/move-findController-resolveFirstPage
Move the call to |PDFFindController.resolveFirstPage| into PDFViewer
This commit is contained in:
commit
a0a94344d7
2 changed files with 4 additions and 2 deletions
|
@ -306,6 +306,10 @@ var PDFViewer = (function pdfViewer() {
|
|||
if (this.defaultRenderingQueue) {
|
||||
this.update();
|
||||
}
|
||||
|
||||
if (this.findController) {
|
||||
this.findController.resolveFirstPage();
|
||||
}
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
|
|
|
@ -863,8 +863,6 @@ var PDFViewerApplication = {
|
|||
|
||||
self.loadingBar.setWidth(document.getElementById('viewer'));
|
||||
|
||||
self.findController.resolveFirstPage();
|
||||
|
||||
if (!PDFJS.disableHistory && !self.isViewerEmbedded) {
|
||||
// The browsing history is only enabled when the viewer is standalone,
|
||||
// i.e. not when it is embedded in a web page.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue