我正在尝试上传Chrome扩展程序,但我收到的错误是我的json文件有语法错误,但我无法弄清楚它是什么。这是文件:
{
"manifest_version": 2,
"name": "Drive to Tumblr",
"version": "1",
"description": "Posts files from google drive to tumblr",
"icons": "Extention_Logo_48x48.png"
},
"browser_action": {
"default_title": "Drive to Tumblr",
"default_icon": "Extention_Logo_19x19.png",
"default_popup": "button.html"
}
}
我在chrome开发人员指南中使用了给定的语法,所以有人能告诉我我做错了吗?
答案 0 :(得分:1)
你不需要你拥有的第一个近距离大括号因为browser_action
仍然是主要清单的一部分。这应该有效:
{
"manifest_version": 2,
"name": "Drive to Tumblr",
"version": "1",
"description": "Posts files from google drive to tumblr",
"icons": "Extention_Logo_48x48.png",
"browser_action": {
"default_title": "Drive to Tumblr",
"default_icon": "Extention_Logo_19x19.png",
"default_popup": "button.html"
}
}