Merge pull request #13617 from Snuffleupagus/reset-externalLinkEnabled
Reset the `IPDFLinkService.externalLinkEnabled` property on document closing
This commit is contained in:
commit
c115be27b6
@ -828,6 +828,7 @@ const PDFViewerApplication = {
|
|||||||
this.pdfDocumentProperties.setDocument(null);
|
this.pdfDocumentProperties.setDocument(null);
|
||||||
}
|
}
|
||||||
webViewerResetPermissions();
|
webViewerResetPermissions();
|
||||||
|
this.pdfLinkService.externalLinkEnabled = true;
|
||||||
this._fellback = false;
|
this._fellback = false;
|
||||||
this.store = null;
|
this.store = null;
|
||||||
this.isInitialViewSet = false;
|
this.isInitialViewSet = false;
|
||||||
|
@ -41,13 +41,12 @@ class PDFLinkService {
|
|||||||
eventBus,
|
eventBus,
|
||||||
externalLinkTarget = null,
|
externalLinkTarget = null,
|
||||||
externalLinkRel = null,
|
externalLinkRel = null,
|
||||||
externalLinkEnabled = true,
|
|
||||||
ignoreDestinationZoom = false,
|
ignoreDestinationZoom = false,
|
||||||
} = {}) {
|
} = {}) {
|
||||||
this.eventBus = eventBus;
|
this.eventBus = eventBus;
|
||||||
this.externalLinkTarget = externalLinkTarget;
|
this.externalLinkTarget = externalLinkTarget;
|
||||||
this.externalLinkRel = externalLinkRel;
|
this.externalLinkRel = externalLinkRel;
|
||||||
this.externalLinkEnabled = externalLinkEnabled;
|
this.externalLinkEnabled = true;
|
||||||
this._ignoreDestinationZoom = ignoreDestinationZoom;
|
this._ignoreDestinationZoom = ignoreDestinationZoom;
|
||||||
|
|
||||||
this.baseUrl = null;
|
this.baseUrl = null;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user