Skip to content

Commit

Permalink
Check for Zotero.Prefs.getAsync() explicitly, not with isConnector
Browse files Browse the repository at this point in the history
translation-server doesn't have Zotero.Prefs.getAsync() and isn't a
connector
  • Loading branch information
dstillman committed Jun 24, 2017
1 parent 5aaefff commit 8f63a5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chrome/content/zotero/xpcom/translation/translate.js
Expand Up @@ -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"));
Expand Down

0 comments on commit 8f63a5e

Please sign in to comment.