mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-13 00:35:46 +01:00
Use gBrowser.replaceTabWithWindow to detachtab.
This commit is contained in:
@@ -1155,11 +1155,7 @@ function Tabs() //{{{
|
|||||||
if (!tab)
|
if (!tab)
|
||||||
tab = getBrowser().mTabContainer.selectedItem;
|
tab = getBrowser().mTabContainer.selectedItem;
|
||||||
|
|
||||||
window.open();
|
getBrowser().replaceTabWithWindow(tab);
|
||||||
let win = services.get("windowMediator").getMostRecentWindow("navigator:browser");
|
|
||||||
|
|
||||||
copyTab(win.getBrowser().mCurrentTab, tab);
|
|
||||||
this.remove(tab, 1, false, 1);
|
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user