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:
parent
5aaefff1d6
commit
8f63a5e20d
1 changed files with 1 additions and 1 deletions
|
@ -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"));
|
||||
|
|
Loading…
Reference in a new issue