Merge pull request #13617 from Snuffleupagus/reset-externalLinkEnabled

Reset the `IPDFLinkService.externalLinkEnabled` property on document closing
This commit is contained in:
Tim van der Meij 2021-06-23 21:42:27 +02:00 committed by GitHub
commit c115be27b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -828,6 +828,7 @@ const PDFViewerApplication = {
this.pdfDocumentProperties.setDocument(null);
}
webViewerResetPermissions();
this.pdfLinkService.externalLinkEnabled = true;
this._fellback = false;
this.store = null;
this.isInitialViewSet = false;

View File

@ -41,13 +41,12 @@ class PDFLinkService {
eventBus,
externalLinkTarget = null,
externalLinkRel = null,
externalLinkEnabled = true,
ignoreDestinationZoom = false,
} = {}) {
this.eventBus = eventBus;
this.externalLinkTarget = externalLinkTarget;
this.externalLinkRel = externalLinkRel;
this.externalLinkEnabled = externalLinkEnabled;
this.externalLinkEnabled = true;
this._ignoreDestinationZoom = ignoreDestinationZoom;
this.baseUrl = null;