Fix a report of broken autocomplete
I can't reproduce this, but the report has "Services is not defined" from autocomplete.xml, triggered by zotero-autocomplete.js. https://forums.zotero.org/discussion/comment/345190/#Comment_345190
This commit is contained in:
parent
6963016c91
commit
360f034b51
1 changed files with 1 additions and 0 deletions
|
@ -32,6 +32,7 @@ const Ci = Components.interfaces;
|
||||||
const Cr = Components.results;
|
const Cr = Components.results;
|
||||||
|
|
||||||
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
|
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||||
|
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||||
|
|
||||||
var Zotero = Components.classes["@zotero.org/Zotero;1"]
|
var Zotero = Components.classes["@zotero.org/Zotero;1"]
|
||||||
.getService(Components.interfaces.nsISupports)
|
.getService(Components.interfaces.nsISupports)
|
||||||
|
|
Loading…
Add table
Reference in a new issue