change extension icon after pressing a button
How to do this on chrome and firefox?
6 Replies
Ping me when reply
I don't think plasmo has built an api for this, so simply use the browsers native api
chrome.browserAction.setIcon
https://developer.chrome.com/docs/extensions/reference/browserAction/Chrome for Developers
chrome.browserAction - Chrome for Developers
Build the next generation of web experiences.
example use case:
@jgoon has reached level 1. GG!
And what about for firefox?
in the background script, you can use plasmo's
browser
api which will dynamically change based which browser you are on
i think you need to config the action in the manifest although