mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-08 01:10:08 +02:00
Use a bit more optional chaining in the viewer
This commit is contained in:
parent
27e738dff9
commit
bb25b6dec5
2 changed files with 5 additions and 9 deletions
|
@ -243,9 +243,7 @@ function webViewerLoad() {
|
|||
|
||||
// Block the "load" event until all pages are loaded, to ensure that printing
|
||||
// works in Firefox; see https://bugzilla.mozilla.org/show_bug.cgi?id=1618553
|
||||
if (document.blockUnblockOnload) {
|
||||
document.blockUnblockOnload(true);
|
||||
}
|
||||
document.blockUnblockOnload?.(true);
|
||||
|
||||
if (
|
||||
document.readyState === "interactive" ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue