基本问题,在manifest.json中我的“options_page”中包含javascript的最佳方式是什么?很确定我有两个错误,我如何包含我包含该页面的命名/参数的js &。Chrome扩展程序:Manifest.json包含选项中的JS
任何帮助将是惊人的!
下面是我在哪里得到的错误:
{
"name": " name of app",
"version": "0.1",
"description": "app stuff",
"background": {
"page": "background.html"
},
"manifest_version": 2,
"browser_action": {
"name": "Manipulate DOM",
"icons": ["icon.png"],
"default_icon": "icon.png"
},
"options_ui": {
// Required.
"page": "options.html",
"js": "options.js", // the file i'm trying to add (for fun)
"chrome_style": true,
}, //where chrome keeps flagging the error.
"content_scripts": [{
"js": ["jquery-2.0.2.min.js", "background.js"],
"css": ["customStyles.css"],
"matches": ["http://*/*", "https://*/*"]
}]
}