From 8f63a5e20df6d58f41b1f78ff7d253101eda8826 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 24 Jun 2017 19:23:02 -0400 Subject: [PATCH] Check for Zotero.Prefs.getAsync() explicitly, not with isConnector translation-server doesn't have Zotero.Prefs.getAsync() and isn't a connector --- chrome/content/zotero/xpcom/translation/translate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js index 8201141e38..4603a5e43e 100644 --- a/chrome/content/zotero/xpcom/translation/translate.js +++ b/chrome/content/zotero/xpcom/translation/translate.js @@ -2184,7 +2184,7 @@ Zotero.Translate.Web.prototype.complete = function(returnValue, error) { var errorString = Zotero.Translate.Base.prototype.complete.apply(this, [returnValue, error]); var promise; - if (Zotero.isConnector) { + if (Zotero.Prefs.getAsync) { promise = Zotero.Prefs.getAsync('reportTranslationFailure'); } else { promise = Zotero.Promise.resolve(Zotero.Prefs.get("reportTranslationFailure"));