Add "browser_action": {} to manifest if you want to use chrome.browserAction.onClicked in background.ts #871
franciscohanna92
started this conversation in
FYI
Replies: 1 comment 2 replies
-
For some reason, even with I don't have a Any idea why @franciscohanna92 ? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm adding this here just because I think someone might find it useful (specially someone not experienced with chrome extensions as myself). Feel free to delete if you think is not necessary.
While trying to open a new tab after clicking the extension icon using the BGSW, I encountered an error:
My
background.ts
:To solve it, I had to add
"browser_action": {}
to themanifest
section in thepackage.json
:Then, it just worked. I found the solution here.
Beta Was this translation helpful? Give feedback.
All reactions