www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit 8f63a5e20df6d58f41b1f78ff7d253101eda8826
parent 5aaefff1d6064a1b63fc6f84cdd16b7622f40a4c
Author: Dan Stillman <dstillman@zotero.org>
Date:   Sat, 24 Jun 2017 19:23:02 -0400

Check for Zotero.Prefs.getAsync() explicitly, not with isConnector

translation-server doesn't have Zotero.Prefs.getAsync() and isn't a
connector

Diffstat:
Mchrome/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 @@ -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"));