don't give addonsbar-related error messages in standalone
This commit is contained in:
parent
f9b4b83f18
commit
9da1a2b9e0
1 changed files with 7 additions and 7 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue