Allow add-ons to be updated via addons.mozilla.org in Zotero Standalone, part 1
This commit is contained in:
parent
5f5bc9568c
commit
564d27f51c
3 changed files with 95 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue