Merge pull request #3231 from yurydelendik/safari-checkheader
Rejects loading when data is not available for checkHeader
This commit is contained in:
commit
220c827e9e
@ -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…
Reference in New Issue
Block a user