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
|
// Handle no-content zotero: URLs (e.g., zotero://select) without opening viewer
|
||||||
if (uri.startsWith('zotero:')) {
|
if (uri.startsWith('zotero:')) {
|
||||||
let nsIURI = Services.io.newURI(uri, null, null);
|
let nsIURI = Services.io.newURI(uri, null, null);
|
||||||
let handler = Components.classes["@mozilla.org/network/protocol;1?name=zotero"]
|
let handler = Services.io.getProtocolHandler("zotero").wrappedJSObject;
|
||||||
.getService();
|
let extension = handler.getExtension(nsIURI);
|
||||||
let extension = handler.wrappedJSObject.getExtension(nsIURI);
|
|
||||||
if (extension.noContent) {
|
if (extension.noContent) {
|
||||||
extension.doAction(nsIURI);
|
extension.doAction(nsIURI);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue