commit dd5d3a8668e9b9b9502b3cc903b082361f73875c
parent 752e25e2825afa3e84d4c085b9e5a2b7d346519d
Author: Dan Stillman <dstillman@zotero.org>
Date: Wed, 12 Jul 2017 18:25:49 -0400
Fix blank window when opening ZotFile's zotero://open-pdf links
Fixes https://github.com/jlegewie/zotfile/issues/272
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js
@@ -3262,7 +3262,7 @@ var ZoteroPane = new function()
if (uri.startsWith('zotero:')) {
let nsIURI = Services.io.newURI(uri, null, null);
let handler = Components.classes["@mozilla.org/network/protocol;1?name=zotero"]
- .createInstance(Components.interfaces.nsIProtocolHandler);
+ .getService();
let extension = handler.wrappedJSObject.getExtension(nsIURI);
if (extension.noContent) {
extension.doAction(nsIURI);