Fix the integration template check for unknown agents

This commit is contained in:
Adomas Venčkauskas 2023-06-16 12:40:13 +03:00
parent 6efa55ffdf
commit 9668270017

View file

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