I’m making a chrome package app. Here is my manifest.json
"app": {
"launch": {
"local_path": "main.html"
}
"content_scripts": [
{
"matches": ["http://*/*", "https://*/*", "file://*/*"],
"js": ["jquery-1.7.min.js", "content_script.js"],
"all_frame": "true"
}
Why my content script can’t run on main.html? Can content script run on a package app?
Content scripts cannot run at the
chrome-extension:protocol [1]. For this reason, the content script will not run at your app.Include the scripts in
main.html:[1]: The only permitted protocols are
http:,https:andfile:. For all other protocols, Content scripts will not be injected, even when<all_urls>is specified.