diff --git a/web/app.js b/web/app.js index 451d05f76..b3a1cf055 100644 --- a/web/app.js +++ b/web/app.js @@ -1005,7 +1005,10 @@ const PDFViewerApplication = { this._saveInProgress = false; this._hasAnnotationEditors = false; - promises.push(this.pdfScriptingManager.destroyPromise); + promises.push( + this.pdfScriptingManager.destroyPromise, + this.passwordPrompt.close() + ); this.setTitle(); this.pdfSidebar?.reset();