Fix ZoteroPane#loadURI with zotero: URLs (#3904)
This commit is contained in:
parent
a78d1c3876
commit
29c0460930
1 changed files with 2 additions and 3 deletions
|
@ -3981,9 +3981,8 @@ var ZoteroPane = new function()
|
|||
// Handle no-content zotero: URLs (e.g., zotero://select) without opening viewer
|
||||
if (uri.startsWith('zotero:')) {
|
||||
let nsIURI = Services.io.newURI(uri, null, null);
|
||||
let handler = Components.classes["@mozilla.org/network/protocol;1?name=zotero"]
|
||||
.getService();
|
||||
let extension = handler.wrappedJSObject.getExtension(nsIURI);
|
||||
let handler = Services.io.getProtocolHandler("zotero").wrappedJSObject;
|
||||
let extension = handler.getExtension(nsIURI);
|
||||
if (extension.noContent) {
|
||||
extension.doAction(nsIURI);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue