Use getService() for another protocol handler call

Follow-up to dd5d3a8668 -- not sure if this one matters, but probably
can't hurt
This commit is contained in:
Dan Stillman 2017-07-12 18:59:20 -04:00
parent dd5d3a8668
commit ae19ffcf9b

View file

@ -546,7 +546,7 @@ ZoteroCommandLineHandler.prototype = {
if(win) {
win.focus();
Components.classes["@mozilla.org/network/protocol;1?name=zotero"]
.createInstance(Components.interfaces.nsIProtocolHandler).newChannel(uri);
.getService().newChannel(uri);
}
}
// See below