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"]
|
var iconPref = Components.classes["@mozilla.org/preferences-service;1"]
|
||||||
.getService(Components.interfaces.nsIPrefService)
|
.getService(Components.interfaces.nsIPrefService)
|
||||||
.getBranch('extensions.zotero.').getIntPref('statusBarIcon');
|
.getBranch('extensions.zotero.').getIntPref('statusBarIcon');
|
||||||
var isFx36 = Components.classes["@mozilla.org/xre/app-info;1"]
|
var appInfo = Components.classes["@mozilla.org/xre/app-info;1"]
|
||||||
.getService(Components.interfaces.nsIXULAppInfo)
|
.getService(Components.interfaces.nsIXULAppInfo);
|
||||||
.platformVersion.indexOf('1.9') === 0;
|
|
||||||
|
|
||||||
|
// 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
|
// Status bar in Fx3.6
|
||||||
if (isFx36) {
|
if (isFx36) {
|
||||||
var icon = document.getElementById('zotero-status-bar-icon');
|
var icon = document.getElementById('zotero-status-bar-icon');
|
||||||
|
@ -497,10 +501,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!icon) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Zotero && Zotero.initialized){
|
if (Zotero && Zotero.initialized){
|
||||||
switch (iconPref) {
|
switch (iconPref) {
|
||||||
case 2:
|
case 2:
|
||||||
|
|
Loading…
Reference in a new issue