From f5005a877e9e7967163668f122ebdc8fe62e689d Mon Sep 17 00:00:00 2001 From: Kamil Tomala Date: Sun, 13 Aug 2017 16:47:02 +0200 Subject: [PATCH] Fix the toggle button toggling in a tab of the wrong window --- bg/monitor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) })