commit ae19ffcf9b86fa0ba599a86350b5319b2de892f1
parent dd5d3a8668e9b9b9502b3cc903b082361f73875c
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 12 Jul 2017 18:59:20 -0400
Use getService() for another protocol handler call
Follow-up to dd5d3a8668e -- not sure if this one matters, but probably
can't hurt
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/components/zotero-service.js b/components/zotero-service.js
@@ -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