Skip to content
Discussion options

You must be logged in to vote

As far as I've discovered, browsers use a 48px icon for the action icon.
Once you have it auto-icon'ed, you can access it by the /icons/48.png path with the following call:

chrome.action.setIcon({ path: '/icons/48.png' });

Each other icon could be placed in the public dir, e.g. public/images/logged-out.png, then the following code will change the action button icon:

chrome.action.setIcon({ path: '/images/logged-out.png' });

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@marcellino-ornelas
Comment options

@marcellino-ornelas
Comment options

Answer selected by marcellino-ornelas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants