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

@ -74,6 +74,12 @@ export const init = ({
browserTabs.remove(id)
.then(updateState)
},
createBackgroundTab(url) {
browserTabs.create({
active: false,
url,
}).then(updateState)
},
updateQuery(query) {
state.query = query
updateState()