aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-05-16 20:50:13 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-05-16 21:51:30 +0900
commitcf5fc92b468186b7b5adc9720ca09c64cbd94098 (patch)
tree17197cacffc2a2f56835dcc315a8c95d9cf0a848 /src/background
parent7bdf73d58c6b688bd61edfbe84940c52fa2abdc1 (diff)
Fix quit command
Diffstat (limited to 'src/background')
-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));
});
};