fx-compat: Fix error viewing items

`Components.classes["@mozilla.org/network/standard-url;1"]` no longer
exists
This commit is contained in:
Dan Stillman 2022-05-04 05:51:11 -04:00
parent 31677dd296
commit 9222b939ab

View file

@ -4197,8 +4197,6 @@ var ZoteroPane = new function()
let item = items[i];
if (item.isRegularItem()) {
// Prefer local file attachments
var uri = Components.classes["@mozilla.org/network/standard-url;1"]
.createInstance(Components.interfaces.nsIURI);
let attachment = yield item.getBestAttachment();
if (attachment) {
yield this.viewAttachment(attachment.id, event);