mirror of
https://github.com/zen-browser/components.git
synced 2025-07-07 23:49:58 +02:00
Frame and Video/Image Split View
Frame and Video/Image Split View
This commit is contained in:
parent
aa13489798
commit
83e581faf8
1 changed files with 1 additions and 1 deletions
|
@ -599,7 +599,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
|
||||||
* Splits a link in a new tab.
|
* Splits a link in a new tab.
|
||||||
*/
|
*/
|
||||||
splitLinkInNewTab() {
|
splitLinkInNewTab() {
|
||||||
const url = window.gContextMenu.linkURL || window.gContextMenu.target.ownerDocument.location.href;
|
const url = window.gContextMenu.linkURL || window.gContextMenu.mediaURL || window.gContextMenu.contentData.docLocation || window.gContextMenu.target.ownerDocument.location.href;
|
||||||
const currentTab = window.gBrowser.selectedTab;
|
const currentTab = window.gBrowser.selectedTab;
|
||||||
const newTab = this.openAndSwitchToTab(url);
|
const newTab = this.openAndSwitchToTab(url);
|
||||||
this.splitTabs([currentTab, newTab]);
|
this.splitTabs([currentTab, newTab]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue