Fix the toggle button toggling in a tab of the wrong window
This commit is contained in:
parent
2a4911d827
commit
f5005a877e
|
|
@ -21,7 +21,7 @@ browser.storage.onChanged.addListener((changes, area) => {
|
|||
})
|
||||
|
||||
browser.browserAction.onClicked.addListener(() => {
|
||||
browser.tabs.query({active: true})
|
||||
browser.tabs.query({ active: true, currentWindow: true })
|
||||
.then(([t]) => toggleTab(t.id))
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue