Skip to content

Instantly share code, notes, and snippets.

@eri451
Created August 29, 2011 18:25
Show Gist options
  • Save eri451/1179037 to your computer and use it in GitHub Desktop.
Save eri451/1179037 to your computer and use it in GitHub Desktop.
changeGroup: function changeGroup(TargetGroupTitle){
let activeTab = window.gBrowser.selectedTab;
let targetGroupId = this.getIdByTitle(TargetGroupTitle);
if (targetGroupId != null){
TabView.moveTabTo(activeTab, targetGroupId);
TabView.hide();
}
activeTab._tabViewTabItem.parent.closeIfEmpty()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment