aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/background/actions/command.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/background/actions/command.js b/src/background/actions/command.js
index 39e880d..f1ee5b5 100644
--- a/src/background/actions/command.js
+++ b/src/background/actions/command.js
@@ -20,7 +20,9 @@ const tabopenCommand = (url) => {
};
const tabcloseCommand = () => {
- return browser.tabs.query({ active: true }).then((tabList) => {
+ return browser.tabs.query({
+ active: true, currentWindow: true
+ }).then((tabList) => {
return browser.tabs.remove(tabList.map(tab => tab.id));
});
};