Fix translator error reports on Fx >20
Additional changes needed to abide by per-window private browsing settings
This commit is contained in:
parent
e2a68c747c
commit
3d6cc7a630
1 changed files with 1 additions and 1 deletions
|
@ -1815,7 +1815,7 @@ Zotero.Translate.Web.prototype.complete = function(returnValue, error) {
|
||||||
if(oldState == "translate" && errorString && !this._parentTranslator && this.translator.length
|
if(oldState == "translate" && errorString && !this._parentTranslator && this.translator.length
|
||||||
&& this.translator[0].inRepository && Zotero.Prefs.get("reportTranslationFailure")) {
|
&& this.translator[0].inRepository && Zotero.Prefs.get("reportTranslationFailure")) {
|
||||||
// Don't report failure if in private browsing mode
|
// Don't report failure if in private browsing mode
|
||||||
if(Zotero.isFx && !Zotero.isBookmarklet && !Zotero.isStandalone) {
|
if(Zotero.isFx && !Zotero.isBookmarklet && !Zotero.isStandalone && Components.classes["@mozilla.org/privatebrowsing;1"]) {
|
||||||
var pbs = Components.classes["@mozilla.org/privatebrowsing;1"]
|
var pbs = Components.classes["@mozilla.org/privatebrowsing;1"]
|
||||||
.getService(Components.interfaces.nsIPrivateBrowsingService);
|
.getService(Components.interfaces.nsIPrivateBrowsingService);
|
||||||
if (pbs.privateBrowsingEnabled) {
|
if (pbs.privateBrowsingEnabled) {
|
||||||
|
|
Loading…
Reference in a new issue