Skip to content

Commit

Permalink
Don't let an progress window block shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman authored and fbennett committed Apr 15, 2018
1 parent ae23852 commit e67ce13
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion chrome/content/zotero/xpcom/progressWindow.js
Expand Up @@ -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;

Expand Down Expand Up @@ -281,7 +284,10 @@ Zotero.ProgressWindow = function(options = {}) {

try {
_progressWindow.close();
} catch(ex) {}
}
catch (e) {
Zotero.logError(e);
}
}

/**
Expand Down

0 comments on commit e67ce13

Please sign in to comment.