The main idea is to put a website inside the extension, this website has scripts, but they are not running. All of the links are relative, even the options page scripts are not working.
<script>
alert("a");
</script>
Am I missing something in the manifest.json file?
{
"manifest_version": 2,
"name": "Extension",
"description": "This is an extension.",
"version": "1.0",
"background": {
"scripts": ["background.js"]
},
"permissions": ["tabs" , "contextMenus"],
"browser_action": {
"default_icon": "icon.png"
},
"content_scripts": [
{
"matches": ["<all_urls>"],
"js": ["./website/scripts/JvScripts.js"]
}
],
"options_page": "options.html"
}
<script>tag within your javascript file?