Merge pull request #12211 from Snuffleupagus/_saveInProgress-reset

Wait until saving has finished before resetting `PDFViewerApplication._saveInProgress` (PR 12137 follow-up)
This commit is contained in:
Brendan Dahl 2020-08-13 08:38:47 -07:00 committed by GitHub
commit 67c361b2f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -939,8 +939,10 @@ const PDFViewerApplication = {
}) })
.catch(() => { .catch(() => {
this.download(); this.download();
}); // Error occurred, try downloading with the URL. })
this._saveInProgress = false; .finally(() => {
this._saveInProgress = false;
});
}, },
/** /**