diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-05-16 21:55:11 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-16 21:55:11 +0900 |
commit | 309b191fea4e590fb9b8323d22c322c9ab9c195e (patch) | |
tree | a2866f430cb0b7ec196cfa6035f6fd6e0a4e6608 /src/background | |
parent | 0233412e5a8cbf8b43e32895e1b5114cdc71c49d (diff) | |
parent | 39959d75ce5879409e02f1071c8cc572ef5d8d3e (diff) |
Merge pull request #394 from ueokande/qa-0.13
QA 0.13
Diffstat (limited to 'src/background')
-rw-r--r-- | src/background/actions/command.js | 4 |
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)); }); }; |