mirror of
https://github.com/He4eT/tabswitcher.git
synced 2026-05-04 17:07:23 +00:00
pages/search: prevent history pollution
This commit is contained in:
parent
7a50b39f96
commit
adf6ab3305
3 changed files with 19 additions and 2 deletions
|
|
@ -6,7 +6,10 @@ const store = Store.init({
|
|||
tabs: browser.tabs,
|
||||
windows: browser.windows,
|
||||
onStateUpdate: dom.updateSearchResults,
|
||||
closeCurrentTab: () => window.close(),
|
||||
closeCurrentTab: () => {
|
||||
history.replaceState({}, '', '')
|
||||
browser.runtime.sendMessage({action: 'closeSender'})
|
||||
},
|
||||
})
|
||||
|
||||
void inputHandlers.attachInputHandlers(store)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue