Remove redundant click handler code from FeedAbstract actor
Missed when committing 8eedfd4a14
.
This commit is contained in:
parent
94f061b0ec
commit
5539bd50ce
2 changed files with 0 additions and 19 deletions
|
@ -31,16 +31,6 @@ class FeedAbstractChild extends JSWindowActorChild {
|
||||||
await this._sendResize();
|
await this._sendResize();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case "click": {
|
|
||||||
// Prevent default click behavior (link opening, form submission,
|
|
||||||
// and so on) in all cases; open links externally
|
|
||||||
event.preventDefault();
|
|
||||||
if (event.button === 0 && event.target.localName === 'a' && event.target.href) {
|
|
||||||
await this._sendLaunchURL(event.target.href);
|
|
||||||
}
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -49,10 +39,6 @@ class FeedAbstractChild extends JSWindowActorChild {
|
||||||
await this.sendAsyncMessage("resize", { offsetWidth: root.offsetWidth, offsetHeight: root.offsetHeight });
|
await this.sendAsyncMessage("resize", { offsetWidth: root.offsetWidth, offsetHeight: root.offsetHeight });
|
||||||
}
|
}
|
||||||
|
|
||||||
async _sendLaunchURL(url) {
|
|
||||||
await this.sendAsyncMessage("launchURL", url);
|
|
||||||
}
|
|
||||||
|
|
||||||
_getResizeRoot() {
|
_getResizeRoot() {
|
||||||
return this.document.documentElement;
|
return this.document.documentElement;
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,11 +15,6 @@ class FeedAbstractParent extends JSWindowActorParent {
|
||||||
this._resizeBrowser(data.offsetHeight);
|
this._resizeBrowser(data.offsetHeight);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
case "launchURL": {
|
|
||||||
Zotero.launchURL(data);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue