pages/search: extract duplicateTab

This commit is contained in:
He4eT 2024-01-21 20:44:27 +01:00
commit e006784421
2 changed files with 7 additions and 4 deletions

View file

@ -67,9 +67,6 @@ function duplicateTab (store, label, flush) {
const tab = getTabByLabel(store, label)
if (tab) {
flush()
browser.tabs.create({
active: false,
url: tab.url,
}).then(store.actions.updateState)
store.actions.createBackgroundTab(tab.url)
}
}