And use the correct new component name ourselves...
This commit is contained in:
parent
39df990d98
commit
c83a4e3762
|
@ -23,7 +23,6 @@
|
||||||
const ZOTERO_AC_CONTRACTID = '@mozilla.org/autocomplete/search;1?name=zotero';
|
const ZOTERO_AC_CONTRACTID = '@mozilla.org/autocomplete/search;1?name=zotero';
|
||||||
const ZOTERO_AC_CLASSNAME = 'Zotero AutoComplete';
|
const ZOTERO_AC_CLASSNAME = 'Zotero AutoComplete';
|
||||||
const ZOTERO_AC_CID = Components.ID('{06a2ed11-d0a4-4ff0-a56f-a44545eee6ea}');
|
const ZOTERO_AC_CID = Components.ID('{06a2ed11-d0a4-4ff0-a56f-a44545eee6ea}');
|
||||||
//const ZOTERO_AC_IID = Components.interfaces.chnmIZoteroAutoComplete;
|
|
||||||
|
|
||||||
const Cc = Components.classes;
|
const Cc = Components.classes;
|
||||||
const Ci = Components.interfaces;
|
const Ci = Components.interfaces;
|
||||||
|
@ -96,7 +95,7 @@ ZoteroAutoCompleteResult.prototype.QueryInterface = function(iid){
|
||||||
*/
|
*/
|
||||||
function ZoteroAutoComplete(){
|
function ZoteroAutoComplete(){
|
||||||
// Get the Zotero object
|
// Get the Zotero object
|
||||||
this._zotero = Components.classes["@chnm.gmu.edu/Zotero;1"]
|
this._zotero = Components.classes["@zotero.org/Zotero;1"]
|
||||||
.getService(Components.interfaces.nsISupports)
|
.getService(Components.interfaces.nsISupports)
|
||||||
.wrappedJSObject;
|
.wrappedJSObject;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
const ZOTERO_CONTRACTID = '@zotero.org/Zotero;1';
|
const ZOTERO_CONTRACTID = '@zotero.org/Zotero;1';
|
||||||
const ZOTERO_CLASSNAME = 'Zotero';
|
const ZOTERO_CLASSNAME = 'Zotero';
|
||||||
const ZOTERO_CID = Components.ID('{e4c61080-ec2d-11da-8ad9-0800200c9a66}');
|
const ZOTERO_CID = Components.ID('{e4c61080-ec2d-11da-8ad9-0800200c9a66}');
|
||||||
const ZOTERO_IID = Components.interfaces.chnmIZoteroService;
|
const ZOTERO_IID = Components.interfaces.chnmIZoteroService; //unused
|
||||||
|
|
||||||
const Cc = Components.classes;
|
const Cc = Components.classes;
|
||||||
const Ci = Components.interfaces;
|
const Ci = Components.interfaces;
|
||||||
|
@ -153,7 +153,7 @@ function setTimeout(func, ms){
|
||||||
ZoteroService.prototype = {
|
ZoteroService.prototype = {
|
||||||
QueryInterface: function(iid){
|
QueryInterface: function(iid){
|
||||||
if (!iid.equals(Components.interfaces.nsISupports) &&
|
if (!iid.equals(Components.interfaces.nsISupports) &&
|
||||||
!iid.equals(ZOTERO_IID)){
|
!iid.equals(ZOTERO_IID)){ // interface unused
|
||||||
throw Components.results.NS_ERROR_NO_INTERFACE;
|
throw Components.results.NS_ERROR_NO_INTERFACE;
|
||||||
}
|
}
|
||||||
return this;
|
return this;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user