基本問題,在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://*/*"]
}]
}