Use a bit more optional chaining in the viewer

This commit is contained in:
Jonas Jenwald 2022-04-07 16:20:41 +02:00
parent 27e738dff9
commit bb25b6dec5
2 changed files with 5 additions and 9 deletions

View file

@ -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" ||