Fix the integration template check for unknown agents
This commit is contained in:
parent
6efa55ffdf
commit
9668270017
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue