Defer add-on manager load until it's necessary
This commit is contained in:
parent
e68a657303
commit
90dd0f34e0
1 changed files with 1 additions and 7 deletions
|
@ -38,13 +38,6 @@ const ZOTERO_CONFIG = {
|
||||||
VERSION: "3.0b3.SVN"
|
VERSION: "3.0b3.SVN"
|
||||||
};
|
};
|
||||||
|
|
||||||
// Load AddonManager for Firefox 4
|
|
||||||
var appInfo = Components.classes["@mozilla.org/xre/app-info;1"].
|
|
||||||
getService(Components.interfaces.nsIXULAppInfo);
|
|
||||||
if(appInfo.platformVersion[0] >= 2) {
|
|
||||||
Components.utils.import("resource://gre/modules/AddonManager.jsm");
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Core functions
|
* Core functions
|
||||||
*/
|
*/
|
||||||
|
@ -1260,6 +1253,7 @@ if(appInfo.platformVersion[0] >= 2) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(this.isFx4) {
|
if(this.isFx4) {
|
||||||
|
Components.utils.import("resource://gre/modules/AddonManager.jsm");
|
||||||
AddonManager.getAllAddons(onHaveInstalledAddons);
|
AddonManager.getAllAddons(onHaveInstalledAddons);
|
||||||
} else {
|
} else {
|
||||||
var em = Components.classes["@mozilla.org/extensions/manager;1"].
|
var em = Components.classes["@mozilla.org/extensions/manager;1"].
|
||||||
|
|
Loading…
Reference in a new issue