From a8a691fddba8deecf09f1f66e52321164605bf3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Fri, 16 Jun 2023 12:40:13 +0300 Subject: [PATCH] Fix the integration template check for unknown agents (cherry picked from commit 9668270017d7c60d1ef6e3eaa38efa9bb73904d0) --- 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 aca55b541f..c619724439 100644 --- a/chrome/content/zotero/xpcom/integration.js +++ b/chrome/content/zotero/xpcom/integration.js @@ -146,7 +146,7 @@ Zotero.Integration = new function() { */ this.warnOutdatedTemplate = function (agent, templateVersion) { const expectedTemplateVersion = TEMPLATE_VERSIONS[agent]; - if (typeof expectedTemplateVersion != 'undefined' && templateVersion >= expectedTemplateVersion) return false; + if (typeof expectedTemplateVersion == 'undefined' || templateVersion >= expectedTemplateVersion) return false; const daysToIgnore = 30; const now = Math.floor(Date.now() / 1000); const updateTemplateDelayedOn = Zotero.Prefs.get('integration.updateTemplateDelayedOn');