Reset the IPDFLinkService.externalLinkEnabled
property on document closing
Given that this property is only used with password protected documents, and is consequently document-specific rather than viewer-specific, ensure that `IPDFLinkService.externalLinkEnabled` is actually being reset by `PDFViewerApplication.close`. To make things less confusing/inconsistent, remove the *undocumented* `externalLinkEnabled` property from the `PDFLinkService` constructor and force it to always be manually set when needed.
This commit is contained in:
parent
9441245320
commit
d959cb824d
@ -828,6 +828,7 @@ const PDFViewerApplication = {
|
||||
this.pdfDocumentProperties.setDocument(null);
|
||||
}
|
||||
webViewerResetPermissions();
|
||||
this.pdfLinkService.externalLinkEnabled = true;
|
||||
this._fellback = false;
|
||||
this.store = null;
|
||||
this.isInitialViewSet = false;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user