commit 291c87737c3c43b4546d703d4c48729badb393d5 parent 9b7c08a06de67fa4acf5224252ad3096eee2928b Author: Simon Kornblith <simon@simonster.com> Date: Tue, 11 Jan 2011 04:55:09 +0000 only check for private browsing mode in Firefox (it doesn't exist in xulrunner) Diffstat:
| M | chrome/content/zotero/xpcom/translation/translate.js | | | 10 | ++++++---- |
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/chrome/content/zotero/xpcom/translation/translate.js b/chrome/content/zotero/xpcom/translation/translate.js @@ -971,10 +971,12 @@ Zotero.Translate.Web.prototype.complete = function(returnValue, error) { // Report translaton failure if we failed if(oldState == "translate" && errorString && this.translator[0].inRepository && Zotero.Prefs.get("reportTranslationFailure")) { // Don't report failure if in private browsing mode - var pbs = Components.classes["@mozilla.org/privatebrowsing;1"] - .getService(Components.interfaces.nsIPrivateBrowsingService); - if (pbs.privateBrowsingEnabled) { - return; + if(Zotero.isFx) { + var pbs = Components.classes["@mozilla.org/privatebrowsing;1"] + .getService(Components.interfaces.nsIPrivateBrowsingService); + if (pbs.privateBrowsingEnabled) { + return; + } } var postBody = "id=" + encodeURIComponent(this.translator[0].translatorID) +