Chrome extension icon not showing?

I am trying to get an icon for an extension on chrome: // extensions / page. My manifest is as follows:

{
  "name":"Hello World",
  "version" : "1.0",
  "description":"Hello World",
  "icons": {                   
    "19": "icon19.png",
    "38": "icon38.png",
    "48": "icon48.png",
    "128": "icon128.png"  
  },    
  "browser_action": {
    "default_icon": {                   
      "19": "icon19.png",
      "38": "icon38.png",
      "48": "icon48.png",
      "128": "icon128.png"        
    }
  },
  "manifest_version": 2
}

As you can tell, I tried overlaying icons on everything. They all have the appropriate size, but I just can’t get the icon that appears in the extensions menu. Thanks in advance.

+4
source share
2 answers
  • The manifest key that controls the icon in chrome: // extensions / is this icons.48.

    Therefore, make sure your “icon48.png” file exists and is in the right place.

  • In addition, the documentation mentions:

    , Chrome , .

    , "" , , 128x128 48x48. ; .

  • .

    , WebKit, BMP, GIF, ICO, JPEG PNG. PNG.

  • , , .

+3

, . .

0

Source: https://habr.com/ru/post/1541649/


All Articles