From 9da1a2b9e06211b9e25aa635a15db99344b51631 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Fri, 14 Jan 2011 07:40:27 +0000 Subject: [PATCH] don't give addonsbar-related error messages in standalone --- chrome/content/zotero/overlay.xul | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/chrome/content/zotero/overlay.xul b/chrome/content/zotero/overlay.xul index a88b8f4ce1..873b52ac43 100644 --- a/chrome/content/zotero/overlay.xul +++ b/chrome/content/zotero/overlay.xul @@ -473,10 +473,14 @@ var iconPref = Components.classes["@mozilla.org/preferences-service;1"] .getService(Components.interfaces.nsIPrefService) .getBranch('extensions.zotero.').getIntPref('statusBarIcon'); - var isFx36 = Components.classes["@mozilla.org/xre/app-info;1"] - .getService(Components.interfaces.nsIXULAppInfo) - .platformVersion.indexOf('1.9') === 0; + var appInfo = Components.classes["@mozilla.org/xre/app-info;1"] + .getService(Components.interfaces.nsIXULAppInfo); + // no need to add to any status bars in standalone + var isStandalone = appInfo.ID === "zotero@chnm.gmu.edu"; + if(isStandalone) return; + + var isFx36 = appInfo.platformVersion.indexOf('1.9') === 0; // Status bar in Fx3.6 if (isFx36) { var icon = document.getElementById('zotero-status-bar-icon'); @@ -497,10 +501,6 @@ } } - if (!icon) { - return; - } - if (Zotero && Zotero.initialized){ switch (iconPref) { case 2: