fx-compat: XPCOMUtils
→ ComponentUtils
for generateNSGetFactory
This commit is contained in:
parent
f4675c02df
commit
9e9ecc7dcf
3 changed files with 7 additions and 15 deletions
|
@ -33,7 +33,7 @@ const ZOTERO_PROTOCOL_CONTRACTID = "@mozilla.org/network/protocol;1?name=" + ZOT
|
|||
const ZOTERO_PROTOCOL_NAME = "Zotero Chrome Extension Protocol";
|
||||
|
||||
Components.utils.import("resource://gre/modules/Services.jsm");
|
||||
Components.utils.import("resource://gre/modules/XPCOMUtils.jsm");
|
||||
Components.utils.import("resource://gre/modules/ComponentUtils.jsm");
|
||||
Components.utils.import("resource://gre/modules/osfile.jsm")
|
||||
const { NetUtil } = ChromeUtils.import("resource://gre/modules/NetUtil.jsm");
|
||||
|
||||
|
@ -1529,4 +1529,4 @@ AsyncChannel.prototype = {
|
|||
};
|
||||
|
||||
|
||||
var NSGetFactory = XPCOMUtils.generateNSGetFactory([ZoteroProtocolHandler]);
|
||||
var NSGetFactory = ComponentUtils.generateNSGetFactory([ZoteroProtocolHandler]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue