Skip to content

Commit

Permalink
Make 909b4b3 apply to search translators too, and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Jul 5, 2017
1 parent 909b4b3 commit 198bd70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion chrome/content/zotero/xpcom/translation/translate.js
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions test/tests/translateTest.js
Expand Up @@ -850,7 +850,7 @@ describe("Zotero.Translate", function() {
+ " });"
+ "}",
{
minVersion: "5.0"
lastUpdated: "2017-07-05 00:00:00"
}
));
var e = yield getPromiseError(translation.translate());
Expand Down Expand Up @@ -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"});
Expand Down

0 comments on commit 198bd70

Please sign in to comment.