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.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/background/components/tab.js b/src/background/components/tab.js
index b273546..6af3fd7 100644
--- a/src/background/components/tab.js
+++ b/src/background/components/tab.js
@@ -4,10 +4,9 @@ export default class TabComponent {
constructor(store) {
this.store = store;
- browser.tabs.onActivated.addListener((info) => {
- return browser.tabs.query({ currentWindow: true }).then(() => {
- return this.onTabActivated(info);
- });
+ browser.tabs.onActivated.addListener(async(info) => {
+ await browser.tabs.query({ currentWindow: true });
+ return this.onTabActivated(info);
});
}