Fix quit command

This commit is contained in:
Shin'ya Ueoka 2018-05-16 20:50:13 +09:00
parent 7bdf73d58c
commit cf5fc92b46

View file

@ -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));
});
};