Fix quit command
This commit is contained in:
parent
7bdf73d58c
commit
cf5fc92b46
1 changed files with 3 additions and 1 deletions
|
@ -20,7 +20,9 @@ const tabopenCommand = (url) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
const tabcloseCommand = () => {
|
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));
|
return browser.tabs.remove(tabList.map(tab => tab.id));
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Reference in a new issue