mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-22 16:18:08 +02:00
Rejects loading when data is not available for checkHeader
This commit is contained in:
parent
cddb5ea0bb
commit
09a4352e8c
1 changed files with 6 additions and 6 deletions
|
@ -145,12 +145,12 @@ var WorkerMessageHandler = {
|
|||
loadDocumentPromise.reject(e);
|
||||
};
|
||||
|
||||
pdfManager.ensureModel('checkHeader', []).then(function() {
|
||||
pdfManager.ensureModel('parseStartXRef', []).then(function() {
|
||||
pdfManager.ensureModel('parse', [recoveryMode]).then(
|
||||
parseSuccess, parseFailure);
|
||||
});
|
||||
});
|
||||
pdfManager.ensureModel('checkHeader', []).then(function() {
|
||||
pdfManager.ensureModel('parseStartXRef', []).then(function() {
|
||||
pdfManager.ensureModel('parse', [recoveryMode]).then(
|
||||
parseSuccess, parseFailure);
|
||||
}, parseFailure);
|
||||
}, parseFailure);
|
||||
|
||||
return loadDocumentPromise;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue