default_icon vs. icon creating Chrome Extension default_icon vs. icon creating Chrome Extension json json

default_icon vs. icon creating Chrome Extension


I did not add all the icon values, specifically the

"icons" : { "icon48.png" }

from my code. I only added the 128 pixel image to the icon array so the icon is visible in the extensions manager. This resulted that the default icon never displayed after I added the icons array. Once I finished adding all the image sizes needed then the default item appeared again.

It all comes down to the basic principle that there is an unlimited amount of ways to solve a problem. The method Scott sharedI did not even know you could change it that way.

  • Here is one way.
  • Another way.
  • My way.
  • And of coursethe method Scott shared.

Thank you!


The icons that you're mentioning inside browser_action, page_action are shown in the toolbar while the icons that are mentioning outside is shown on the chrome://extensions page

"browser_action":{    "default_popup":"auth_popup.html",     "default_icon": {  "16": "images/bridgeglobal16.png",  "32": "images/bridgeglobal32.png",  "48": "images/bridgeglobal48.png",  "128": "images/bridgeglobal128.png"    }}, "icons": {  "16": "images/salimeyes16.png",  "32": "images/salimeyes32.png",  "48": "images/salimeyes48.png",  "128": "images/salimeyes128.png"},