Fix the attempt to display the delay citation updates dialog breaking updates

Since 2b3669afd
This commit is contained in:
Adomas Venčkauskas 2021-04-05 16:23:05 +03:00
parent a6fc2cb206
commit 8bff4cff42

View file

@ -1108,7 +1108,7 @@ Zotero.Integration.Session.prototype.updateDocument = Zotero.Promise.coroutine(f
this.timer = null; this.timer = null;
Zotero.debug(`Integration: updateDocument complete in ${diff}s`) Zotero.debug(`Integration: updateDocument complete in ${diff}s`)
// If the update takes longer than 5s suggest delaying citation updates // 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(); yield this._doc.activate();
var interfaceType = 'tab'; var interfaceType = 'tab';