mirror of
https://github.com/He4eT/tabswitcher.git
synced 2026-05-05 01:17:23 +00:00
pages/search: actions: discardTab
This commit is contained in:
parent
bcf56cf841
commit
f8ec211e19
2 changed files with 20 additions and 4 deletions
|
|
@ -89,6 +89,14 @@ export const init = ({
|
|||
url,
|
||||
}).then(updateState)
|
||||
},
|
||||
discardTab(id) {
|
||||
browserTabs.discard(id)
|
||||
.then(updateState)
|
||||
},
|
||||
updateTab(id, options) {
|
||||
browserTabs.update(id, options)
|
||||
.then(updateState)
|
||||
},
|
||||
updateQuery(query) {
|
||||
state.query = query
|
||||
updateState()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue