commit 15c79766e86e92b7d94f1771459c9aaad8d40c7a
parent 3eef17578da5a3653a9d2862b60ccfe08e61a6a9
Author: Simon Kornblith <simon@simonster.com>
Date: Wed, 21 Sep 2011 20:30:37 +0000
Hackish way of avoiding async AddonManager APIs during initialization
Diffstat:
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/chrome.manifest b/chrome.manifest
@@ -1,5 +1,6 @@
content zotero chrome/content/zotero/
content zotero-platform chrome/content/zotero-platform/ platform
+content zotero-resource resource/
locale zotero en-US chrome/locale/en-US/zotero/
locale zotero af-ZA chrome/locale/af-ZA/zotero/
diff --git a/chrome/content/zotero/xpcom/zotero.js b/chrome/content/zotero/xpcom/zotero.js
@@ -797,9 +797,9 @@ if(appInfo.platformVersion[0] >= 2) {
.getService(Components.interfaces.nsIChromeRegistry);
var ioService = Components.classes["@mozilla.org/network/io-service;1"]
.getService(Components.interfaces.nsIIOService);
- var zoteroURI = ioService.newURI("chrome://zotero/content/", "UTF-8", null);
+ var zoteroURI = ioService.newURI("chrome://zotero-resource/content/", "UTF-8", null);
zoteroURI = cr.convertChromeURL(zoteroURI).QueryInterface(Components.interfaces.nsIFileURL);
- return zoteroURI.file.parent.parent.parent.parent;
+ return zoteroURI.file.parent.parent;
}
function getDefaultProfile(prefDir) {