Fix the integration template check for unknown agents

(cherry picked from commit 9668270017)
This commit is contained in:
Adomas Venčkauskas 2023-06-16 12:40:13 +03:00 committed by Dan Stillman
parent e19ab9b30b
commit a8a691fddb

View file

@ -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');