diff --git a/web/app.js b/web/app.js index 4bd905cee..039f7af29 100644 --- a/web/app.js +++ b/web/app.js @@ -939,8 +939,10 @@ const PDFViewerApplication = { }) .catch(() => { this.download(); - }); // Error occurred, try downloading with the URL. - this._saveInProgress = false; + }) + .finally(() => { + this._saveInProgress = false; + }); }, /**