commit 547f1c29e356ed0b65f8f9880215aca9c1a40830
parent 2dd0a560b7dc8cc66be974e8b211e07f1af5fe6b
Author: Adomas VenĨkauskas <adomas.ven@gmail.com>
Date: Fri, 1 Jun 2018 23:26:13 +0300
Integration: Fix non-existent session errors preventing displayError from working
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js
@@ -378,7 +378,8 @@ Zotero.Integration = new function() {
// We do not want to redisplay the progress bar if this window close
// was the final close of the integration command
await Zotero.Promise.delay(10);
- if (Zotero.Integration.currentDoc) {
+ if (Zotero.Integration.currentDoc && Zotero.Integration.currentSession
+ && Zotero.Integration.currentSession.progressBar) {
Zotero.Integration.currentSession.progressBar.show();
}
};