aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
Diffstat (limited to 'src/background')
-rw-r--r--src/background/tabs.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/background/tabs.js b/src/background/tabs.js
index 4de4dd2..d4b033a 100644
--- a/src/background/tabs.js
+++ b/src/background/tabs.js
@@ -1,12 +1,10 @@
let prevSelTab = 1;
let currSelTab = 1;
-browser.tabs.onActivated.addListener(tabChangeHandler);
-
-function tabChangeHandler(activeInfo) {
+browser.tabs.onActivated.addListener((activeInfo) => {
prevSelTab = currSelTab;
currSelTab = activeInfo.tabId;
-}
+});
const closeTab = (id) => {
return browser.tabs.remove(id);