0
我正在学习如何编写webextensions。
所以我从零开始复制here的“beastify”扩展名。为什么webextension安装失败?
但是我的复制版本的安装失败。
我不知道为什么安装失败。
有相同的目录结构,相同的含义代码,相同的图片文件。
我想在manifest.json中有导致安装失败的原因。
我的manifest.json:
{
"manifest_version": 2,
"name": "Beastify",
"version": 1.0,
"description": "add a browser action icon to the toolbar. Click the button to choose a beast. The active tab's body content is then replaced with a picture of the choosen beast.",
"icons": {
"48": "icons/beasts-48.png"
},
"permissions": [
"activeTab"
],
"browser_action": {
"default_icon": "icons/beasts-32.png",
"default_title": "Beastify",
"default_popup": "popup/choose_beast.html"
},
"web_accessible_resources": [
"beasts/frog.jpg",
"beasts/turtle.jpg",
"beasts/snake.jpg"
]
}