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