aboutsummaryrefslogtreecommitdiff
path: root/src/background/components/tab.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/components/tab.js')
-rw-r--r--src/background/components/tab.js16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/background/components/tab.js b/src/background/components/tab.js
deleted file mode 100644
index 6af3fd7..0000000
--- a/src/background/components/tab.js
+++ /dev/null
@@ -1,16 +0,0 @@
-import * as tabActions from '../actions/tab';
-
-export default class TabComponent {
- constructor(store) {
- this.store = store;
-
- browser.tabs.onActivated.addListener(async(info) => {
- await browser.tabs.query({ currentWindow: true });
- return this.onTabActivated(info);
- });
- }
-
- onTabActivated(info) {
- return this.store.dispatch(tabActions.selected(info.tabId));
- }
-}