我正在编写Web扩展程序。单击该用户可以与之交互的窗口时,它将弹出。弹出窗口可以正确显示HTML和CSS,但无法执行JS。
这是我manifest.json文件的代码:
{
"manifest_version": 2,
"name": "To-Do List",
"description": "Keep track of your tasks easily.",
"version": "1.0.0",
"icons": {"128":"icon.png"},
"browser_action": {
"default_icon": "icon.png",
"default_popup": "popup.html"
},
"content_scripts": [
{
"matches": ["*://*/"],
"js": ["app.js"]
}
],
"permissions": ["activeTab"]
}
所有文件都在同一目录中!