commit 869d0ce90a899a8ea8535cdb74062b13513f71d0 parent 1d1b825c629716e15838054caad4e52a35084e1f Author: aurimasv <aurimas.dev@gmail.com> Date: Sat, 19 Jan 2013 01:49:51 -0600 Don't report web translator errors if there is a parent translator Diffstat:
| M | chrome/content/zotero/xpcom/translation/translate.js | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -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"]