From 8bff4cff4239edef86a51b14e6ae4289537c7724 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Mon, 5 Apr 2021 16:23:05 +0300 Subject: [PATCH] Fix the attempt to display the delay citation updates dialog breaking updates Since 2b3669afd --- chrome/content/zotero/xpcom/integration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/integration.js b/chrome/content/zotero/xpcom/integration.js index eea1dc2037..e456b8cc38 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -1108,7 +1108,7 @@ Zotero.Integration.Session.prototype.updateDocument = Zotero.Promise.coroutine(f this.timer = null; Zotero.debug(`Integration: updateDocument complete in ${diff}s`) // If the update takes longer than 5s suggest delaying citation updates - if (diff > DELAY_CITATIONS_PROMPT_TIMEOUT && !this.data.prefs.dontAskDelayCitationUpdates && !this._session.data.prefs.delayCitationUpdates) { + if (diff > DELAY_CITATIONS_PROMPT_TIMEOUT && !this.data.prefs.dontAskDelayCitationUpdates && !this.data.prefs.delayCitationUpdates) { yield this._doc.activate(); var interfaceType = 'tab';