Skip to content

Commit 9d0ebf1

Browse files
authored
Fix startup issue on Chrome (#69)
The action needs to be disabled on each startup otherwise it will stay enabled for all pages. Add the `onStartup` listener to also disable the action.
1 parent 5a679aa commit 9d0ebf1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/background_scripts/background.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ runtime.onInstalled.addListener(() => {
2020
action.disable();
2121
});
2222

23+
runtime.onStartup.addListener(() => {
24+
action.disable();
25+
});
26+
2327
action.onClicked.addListener(() => {
2428
_tabs
2529
.query({ active: true, currentWindow: true })

0 commit comments

Comments
 (0)