Allow add-ons to be updated via addons.mozilla.org in Zotero Standalone, part 1

This commit is contained in:
Simon Kornblith 2012-02-08 23:05:34 -05:00
parent 5f5bc9568c
commit 564d27f51c
3 changed files with 95 additions and 0 deletions

View file

@ -250,6 +250,13 @@ function makeZoteroContext(isConnector) {
.loadSubScript("chrome://zotero/content/xpcom/" + rdfXpcomFiles[i] + ".js", zContext.Zotero.RDF.AJAW);
}
if(isStandalone()) {
// If isStandalone, load standalone.js
Cc["@mozilla.org/moz/jssubscript-loader;1"]
.getService(Ci.mozIJSSubScriptLoader)
.loadSubScript("chrome://zotero/content/xpcom/standalone.js", zContext);
}
// load nsTransferable (query: do we still use this?)
Cc["@mozilla.org/moz/jssubscript-loader;1"]
.getService(Ci.mozIJSSubScriptLoader)