Skip to content

Commit

Permalink
Merge pull request #13617 from Snuffleupagus/reset-externalLinkEnabled
Browse files Browse the repository at this point in the history
Reset the `IPDFLinkService.externalLinkEnabled` property on document closing
  • Loading branch information
timvandermeij committed Jun 23, 2021
2 parents 2bae399 + d959cb8 commit c115be2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ const PDFViewerApplication = {
this.pdfDocumentProperties.setDocument(null);
}
webViewerResetPermissions();
this.pdfLinkService.externalLinkEnabled = true;
this._fellback = false;
this.store = null;
this.isInitialViewSet = false;
Expand Down
3 changes: 1 addition & 2 deletions web/pdf_link_service.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c115be2

Please sign in to comment.