Fix the toggle button toggling in a tab of the wrong window

This commit is contained in:
Kamil Tomala 2017-08-13 16:47:02 +02:00
parent 2a4911d827
commit f5005a877e
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ browser.storage.onChanged.addListener((changes, area) => {
}) })
browser.browserAction.onClicked.addListener(() => { browser.browserAction.onClicked.addListener(() => {
browser.tabs.query({active: true}) browser.tabs.query({ active: true, currentWindow: true })
.then(([t]) => toggleTab(t.id)) .then(([t]) => toggleTab(t.id))
}) })