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