Skip to content

Commit

Permalink
Merge pull request #12211 from Snuffleupagus/_saveInProgress-reset
Browse files Browse the repository at this point in the history
Wait until saving has finished before resetting `PDFViewerApplication._saveInProgress` (PR 12137 follow-up)
  • Loading branch information
brendandahl authored Aug 13, 2020
2 parents e50cb4c + 22cb59e commit 67c361b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions web/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -939,8 +939,10 @@ const PDFViewerApplication = {
})
.catch(() => {
this.download();
}); // Error occurred, try downloading with the URL.
this._saveInProgress = false;
})
.finally(() => {
this._saveInProgress = false;
});
},

/**
Expand Down

0 comments on commit 67c361b

Please sign in to comment.