Don't let an progress window block shutdown

Closes #1485
This commit is contained in:
Dan Stillman 2018-04-14 10:09:57 -04:00
parent 71f7ec5207
commit 460a423df3

View File

@ -154,6 +154,9 @@ Zotero.ProgressWindow = function(options = {}) {
_progressWindow.addEventListener("mouseover", _onMouseOver, false);
_progressWindow.addEventListener("mouseout", _onMouseOut, false);
_progressWindow.addEventListener("mouseup", _onMouseUp, false);
_window.addEventListener('close', () => {
this.close();
});
_windowLoading = true;
@ -281,7 +284,10 @@ Zotero.ProgressWindow = function(options = {}) {
try {
_progressWindow.close();
} catch(ex) {}
}
catch (e) {
Zotero.logError(e);
}
}
/**