aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
authorDaniel Campoverde <alx@sillybytes.net>2017-11-26 13:38:17 -0500
committerDaniel Campoverde <alx@sillybytes.net>2017-11-26 13:38:17 -0500
commit70a47fdaeee9da195369a625a5f820731eaeaf3f (patch)
tree75a6dde79621f47d8a7df01c32da61e9e694fde6 /src/background
parent6fc5d06205a10b5c3a4af37d19ed6d4650b6d42e (diff)
Fix linter error
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);