Don't report web translator errors if there is a parent translator
This commit is contained in:
parent
1d1b825c62
commit
869d0ce90a
1 changed files with 2 additions and 1 deletions
|
@ -1721,7 +1721,8 @@ Zotero.Translate.Web.prototype.complete = function(returnValue, error) {
|
|||
var errorString = Zotero.Translate.Base.prototype.complete.apply(this, [returnValue, error]);
|
||||
|
||||
// Report translation failure if we failed
|
||||
if(oldState == "translate" && errorString && this.translator[0].inRepository && Zotero.Prefs.get("reportTranslationFailure")) {
|
||||
if(oldState == "translate" && errorString && !this._parentTranslator && this.translator.length
|
||||
&& this.translator[0].inRepository && Zotero.Prefs.get("reportTranslationFailure")) {
|
||||
// Don't report failure if in private browsing mode
|
||||
if(Zotero.isFx && !Zotero.isBookmarklet && !Zotero.isStandalone) {
|
||||
var pbs = Components.classes["@mozilla.org/privatebrowsing;1"]
|
||||
|
|
Loading…
Reference in a new issue