diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index b6047fc9e8..507e7d2429 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -82,7 +82,7 @@ Zotero.Translate.Sandbox = { */ _itemDone: function (translate, item) { // https://github.com/zotero/translators/issues/1353 - var asyncTranslator = translate instanceof Zotero.Translate.Import + var asyncTranslator = !(translate instanceof Zotero.Translate.Web) && translate.translator[0].lastUpdated > '2017-07-05'; var run = function (resolve) { diff --git a/test/tests/translateTest.js b/test/tests/translateTest.js index 9d6d214660..378fe299ae 100644 --- a/test/tests/translateTest.js +++ b/test/tests/translateTest.js @@ -850,7 +850,7 @@ describe("Zotero.Translate", function() { + " });" + "}", { - minVersion: "5.0" + lastUpdated: "2017-07-05 00:00:00" } )); var e = yield getPromiseError(translation.translate()); @@ -906,7 +906,7 @@ describe("Zotero.Translate", function() { + " });" + "}", { - minVersion: "5.0" + lastUpdated: "2017-07-05 00:00:00" } )); translation.setSearch({ itemType: "journalArticle", DOI: "10.111/Test"});