Chrome Extension Icon Manifest

前端 未结 2 1056
無奈伤痛
無奈伤痛 2021-01-11 19:41

How to change Chrome Extension icon in this page?

Here\'s my manifest code :

{
  "manifest_versio         


        
2条回答
  •  无人及你
    2021-01-11 20:45

    Set "icons" key in manifest.json.

    The browser_action.icons key is what gets displayed in the toolbar (and will probably only use 16, 24, and 32 sized images, see browserAction).

    The one displayed in chrome://extensions is a top level icons key. In the manifest documentation, look for the 6th entry, so that your manifest has an top-level entry, like:

    {
      "icons": {
        "16": "icon16.png",
        "48": "icon48.png",
        "128": "icon128.png"
      }
    }
    

提交回复
热议问题