Use optional chaining even more in the web/app.js
file
This commit is contained in:
parent
ada283cc35
commit
8ff0f8e4df
17
web/app.js
17
web/app.js
@ -853,12 +853,8 @@ const PDFViewerApplication = {
|
|||||||
this.pdfAttachmentViewer.reset();
|
this.pdfAttachmentViewer.reset();
|
||||||
this.pdfLayerViewer.reset();
|
this.pdfLayerViewer.reset();
|
||||||
|
|
||||||
if (this.pdfHistory) {
|
this.pdfHistory?.reset();
|
||||||
this.pdfHistory.reset();
|
this.findBar?.reset();
|
||||||
}
|
|
||||||
if (this.findBar) {
|
|
||||||
this.findBar.reset();
|
|
||||||
}
|
|
||||||
this.toolbar.reset();
|
this.toolbar.reset();
|
||||||
this.secondaryToolbar.reset();
|
this.secondaryToolbar.reset();
|
||||||
|
|
||||||
@ -1850,9 +1846,7 @@ const PDFViewerApplication = {
|
|||||||
this.printService.destroy();
|
this.printService.destroy();
|
||||||
this.printService = null;
|
this.printService = null;
|
||||||
|
|
||||||
if (this.pdfDocument) {
|
this.pdfDocument?.annotationStorage.resetModified();
|
||||||
this.pdfDocument.annotationStorage.resetModified();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
this.forceRendering();
|
this.forceRendering();
|
||||||
},
|
},
|
||||||
@ -1864,10 +1858,7 @@ const PDFViewerApplication = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
requestPresentationMode() {
|
requestPresentationMode() {
|
||||||
if (!this.pdfPresentationMode) {
|
this.pdfPresentationMode?.request();
|
||||||
return;
|
|
||||||
}
|
|
||||||
this.pdfPresentationMode.request();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
triggerPrinting() {
|
triggerPrinting() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user