From cf5fc92b468186b7b5adc9720ca09c64cbd94098 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Wed, 16 May 2018 20:50:13 +0900 Subject: Fix quit command --- src/background/actions/command.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/background') 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)); }); }; -- cgit v1.2.3