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);
|
loadDocumentPromise.reject(e);
|
||||||
};
|
};
|
||||||
|
|
||||||
pdfManager.ensureModel('checkHeader', []).then(function() {
|
pdfManager.ensureModel('checkHeader', []).then(function() {
|
||||||
pdfManager.ensureModel('parseStartXRef', []).then(function() {
|
pdfManager.ensureModel('parseStartXRef', []).then(function() {
|
||||||
pdfManager.ensureModel('parse', [recoveryMode]).then(
|
pdfManager.ensureModel('parse', [recoveryMode]).then(
|
||||||
parseSuccess, parseFailure);
|
parseSuccess, parseFailure);
|
||||||
});
|
}, parseFailure);
|
||||||
});
|
}, parseFailure);
|
||||||
|
|
||||||
return loadDocumentPromise;
|
return loadDocumentPromise;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user