发布扩展名后显示无效文件

时间:2018-06-29 23:05:09

标签: google-chrome-extension

在本地开发时,manifest.json可以工作,但是当发布到扩展存储时,它只会显示“无效的清单”。

manifest.json:

{
"name": "my fancy name",
"version": "0.0.3",
"description": "my fancy desc",
"manifest_version": 2,
"permissions": ["activeTab", "tabs"],
"background": {
    "scripts": ["background.js"],
    "persistent": false
},
"content_scripts": [{
    "matches": ["https://*.youtube.com/watch*"],
    "js": ["main.js"],
    "run_at": "document_idle",
    "css": ["styles.css"]
}],
"icons": {
    "16": "images/icon16.png",
    "32": "images/icon32.png",
    "48": "images/icon48.png",
    "128": "images/icon128.png"
}

}

有人吗?

1 个答案:

答案 0 :(得分:0)

它由Chrome商店自行修复。