aboutsummaryrefslogtreecommitdiff
path: root/src/background/presenters/tab.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/presenters/tab.js')
-rw-r--r--src/background/presenters/tab.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/background/presenters/tab.js b/src/background/presenters/tab.js
index 8f60535..6120f6e 100644
--- a/src/background/presenters/tab.js
+++ b/src/background/presenters/tab.js
@@ -2,4 +2,8 @@ export default class TabPresenter {
create(url) {
browser.tabs.create({ url, });
}
+
+ onSelected(listener) {
+ browser.tabs.onActivated.addListener(listener);
+ }
}