Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mbnuqw committed Jul 11, 2023
1 parent cf23a2d commit de66ee8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/services/tabs.fg.actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,6 @@ export async function discardTabs(tabIds: ID[] = []): Promise<void> {
if (!tab || tab.pinned) return false
return true
})
console.log('[DEBUG] wtf', tabIds)
}

// Update succession for active tab to prevent switching to discarded tabs
Expand All @@ -1397,7 +1396,6 @@ export async function discardTabs(tabIds: ID[] = []): Promise<void> {
if (target) {
// If active tab will be discraded activate another
if (tabIds.includes(Tabs.activeId)) {
console.log('[DEBUG] target', target?.title)
await browser.tabs.update(target.id, { active: true })
} else if (activeTab.successorTabId !== target.id) {
browser.tabs.moveInSuccession([activeTab.id], target.id).catch(err => {
Expand Down

0 comments on commit de66ee8

Please sign in to comment.