diff --git a/bg/monitor.js b/bg/monitor.js index a1c1c9f..1efffb8 100644 --- a/bg/monitor.js +++ b/bg/monitor.js @@ -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)) })