mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-09 17:55:37 +02:00
Merge pull request #2318 from init-js/master
try/catch fallback fails to disable linearization
This commit is contained in:
commit
02aee99400
1 changed files with 1 additions and 0 deletions
|
@ -458,6 +458,7 @@ var PDFDocument = (function PDFDocumentClosure() {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
warn('The linearization data is not available ' +
|
warn('The linearization data is not available ' +
|
||||||
'or unreadable pdf data is found');
|
'or unreadable pdf data is found');
|
||||||
|
linearization = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// shadow the prototype getter with a data property
|
// shadow the prototype getter with a data property
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue