Fix outdated template warning for Mac Word

This commit is contained in:
Adomas Venčkauskas 2021-02-25 10:06:35 +02:00 committed by Dan Stillman
parent 7cd861a9e1
commit e166a04876

View file

@ -138,7 +138,7 @@ Zotero.Integration = new function() {
* @returns {Boolean} true if integration operation should be cancelled
*/
this.warnOutdatedTemplate = function (agent, templateVersion) {
const validAgents = new Set(['OpenOffice', 'MacWord', 'WinWord']);
const validAgents = new Set(['OpenOffice', 'MacWord2016', 'MacWord16', 'WinWord']);
if (!validAgents.has(agent) || templateVersion >= TEMPLATE_VERSION) return false;
const daysToIgnore = 30;
const now = Math.floor(Date.now() / 1000);