mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Prevent searching during load from breaking the find functionality
This commit is contained in:
parent
c5bcd7a7ef
commit
54dfe05e30
2 changed files with 14 additions and 10 deletions
|
@ -162,8 +162,6 @@ var Settings = (function SettingsClosure() {
|
|||
var cache = new Cache(CACHE_SIZE);
|
||||
var currentPageNumber = 1;
|
||||
|
||||
// TODO: Enable the FindBar *AFTER* the pagesPromise in the load function
|
||||
// got resolved
|
||||
//#include pdf_find_bar.js
|
||||
//#include pdf_find_controller.js
|
||||
//#include pdf_history.js
|
||||
|
@ -941,6 +939,8 @@ var PDFView = {
|
|||
pagePromises.push(pagePromise);
|
||||
}
|
||||
|
||||
PDFFindController.firstPagePromise.resolve();
|
||||
|
||||
PDFJS.Promise.all(pagePromises).then(function(pages) {
|
||||
pagesPromise.resolve(pages);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue