From dd5d3a8668e9b9b9502b3cc903b082361f73875c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 12 Jul 2017 18:25:49 -0400 Subject: [PATCH] Fix blank window when opening ZotFile's zotero://open-pdf links Fixes https://github.com/jlegewie/zotfile/issues/272 --- chrome/content/zotero/zoteroPane.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 26f1df3e4..e3afabe04 100644 --- 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);