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

translation-server doesn't have Zotero.Prefs.getAsync() and isn't a
connector
This commit is contained in:
Dan Stillman 2017-06-24 19:23:02 -04:00
parent 5aaefff1d6
commit 8f63a5e20d

View file

@ -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"));