Merge pull request #65 from gunir/patch-3

Frame and Video/Image Split View
This commit is contained in:
mr. m 🤙 2024-10-26 20:34:08 +03:00 committed by GitHub
commit c91530e784
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -599,7 +599,7 @@ class ZenViewSplitter extends ZenDOMOperatedFeature {
* Splits a link in a new tab.
*/
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 newTab = this.openAndSwitchToTab(url);
this.splitTabs([currentTab, newTab]);