Fix quit command

jh-changes
Shin'ya Ueoka 6 years ago
parent 7bdf73d58c
commit cf5fc92b46
  1. 4
      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));
});
};