0

我正在尝试向 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 行显示语法错误。不知道为什么。

怎么了?

4

1 回答 1

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 文件。

于 2012-12-27T18:16:05.723 回答