mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-26 01:58:06 +02:00
Merge branch 'fallback-fix'
Conflicts: src/core.js
This commit is contained in:
commit
cddb5ea0bb
3 changed files with 30 additions and 15 deletions
|
@ -137,7 +137,8 @@ var WorkerMessageHandler = {
|
|||
javaScript: results[6]
|
||||
};
|
||||
loadDocumentPromise.resolve(doc);
|
||||
});
|
||||
},
|
||||
parseFailure);
|
||||
};
|
||||
|
||||
var parseFailure = function parseFailure(e) {
|
||||
|
@ -261,7 +262,7 @@ var WorkerMessageHandler = {
|
|||
|
||||
var onSuccess = function(doc) {
|
||||
handler.send('GetDoc', { pdfInfo: doc });
|
||||
pdfManager.ensureModel('traversePages', []);
|
||||
pdfManager.ensureModel('traversePages', []).then(null, onFailure);
|
||||
};
|
||||
|
||||
var onFailure = function(e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue