我尝试向Chrome网上应用店提交Google Chrome扩展程序,但收到以下错误:
发生错误:无效的清单。如果您的清单包含评论,请将其删除,因为我们的画廊尚不支持。
这是我的manifest.json:
{
"name": "IMGit Image Uploader",
"version": "1",
"description": "Easy and fast image uploading from a simple right click.",
"background": {"page": "imgit.html"},
"icons": {
"16": "16.png",
"48": "48.png",
"128": "128.png"
},
"permissions": ["contextMenus","tabs","http://*/*","https://*/*",],
"manifest_version": 2,
}
Adobe Dreamweaver在第2行显示语法错误。不知道原因。
出了什么问题?
答案 0 :(得分:3)
尝试删除您在JSON中的两个额外逗号:
{
"name": "IMGit Image Uploader",
"version": "1",
"description": "Easy and fast image uploading from a simple right click.",
"background": {
"page": "imgit.html"
},
"icons": {
"16": "16.png",
"48": "48.png",
"128": "128.png"
},
"permissions": [
"contextMenus",
"tabs",
"http://*/*",
"https://*/*"
],
"manifest_version": 2
}
您可以验证您的JSON文件here。