Tweak RDF loading code
This commit is contained in:
parent
fb521ea4ad
commit
5894a9511d
2 changed files with 5 additions and 5 deletions
|
@ -29,8 +29,8 @@ var $rdf = {
|
|||
alert: Zotero.debug
|
||||
};
|
||||
|
||||
if(!Zotero.RDF) { // For connector
|
||||
if(Zotero.RDF) {
|
||||
Zotero.RDF.AJAW = $rdf;
|
||||
} else {
|
||||
Zotero.RDF = {AJAW:$rdf};
|
||||
} else { // For extension
|
||||
Zotero.RDF.AJAW.$rdf = $rdf;
|
||||
}
|
|
@ -243,11 +243,11 @@ function makeZoteroContext(isConnector) {
|
|||
'rdf/rdfparser',
|
||||
'rdf/serialize'
|
||||
];
|
||||
zContext.Zotero.RDF = {AJAW:{Zotero:zContext.Zotero}};
|
||||
zContext.Zotero.RDF = {Zotero:zContext.Zotero};
|
||||
for (var i=0; i<rdfXpcomFiles.length; i++) {
|
||||
Cc["@mozilla.org/moz/jssubscript-loader;1"]
|
||||
.getService(Ci.mozIJSSubScriptLoader)
|
||||
.loadSubScript("chrome://zotero/content/xpcom/" + rdfXpcomFiles[i] + ".js", zContext.Zotero.RDF.AJAW);
|
||||
.loadSubScript("chrome://zotero/content/xpcom/" + rdfXpcomFiles[i] + ".js", zContext.Zotero.RDF);
|
||||
}
|
||||
|
||||
if(isStandalone()) {
|
||||
|
|
Loading…
Reference in a new issue