Chrome 扩展程序:尽管在清单文件中指定了扩展程序徽标图像

时间:2021-05-18 23:45:54

标签: google-chrome google-chrome-extension

我点击 https://chrome://extensions 中的 enter image description here 按钮,它会加载我的扩展程序。但是,扩展程序的图像/徽标是默认的,而不是我提供的:

enter image description here

ma​​nifest.js

{
  "name": "My App",
  "version": "1.0.0",
  "description": "My extension doesn't do anything yet!",
  "manifest_version": 2,
  "background": {
    "persistent": false,
    "scripts": ["js/clear_history.js"]
  },
  "icons": {
    "48": "images/logo.svg",
    "96": "images/logo.svg"
  },
  "browser_action": {
    "default_icon": "images/logo.svg"
  },
  "options_ui": {
    "page": "options.html",
    "chrome_style": true
  },
  "permissions": ["history", "storage"],
  "web_accessible_resources": ["logo.svg"]

}

项目目录:

enter image description here

我该如何解决?

编辑:

enter image description here

0 个答案:

没有答案
相关问题