Kri*_*0an 2 html javascript json popup google-chrome-extension
我知道弹出窗口是由一个 html 文件组成的。下面是我的代码。出于某种原因,当我单击该图标时,弹出窗口不会打开。关于问题可能是什么的任何想法?
{
"name": "Popup Snake",
"version": "1.0",
"description": "A simple snake game popup, that can be opened by clicking the icon in the top right (after installing)",
"page_action": {
"default_popup": "popup.html"
},
"manifest_version": 2
}
Run Code Online (Sandbox Code Playgroud)
小智 6
尝试将 page_action 更改为 browser_action 就像这样:
{
"name": "Popup Snake",
"version": "1.0",
"description": "A simple snake game popup, that can be opened by clicking the icon in the top right (after installing)",
"browser_action": {
"default_popup": "popup.html"
},
"manifest_version": 2
Run Code Online (Sandbox Code Playgroud)
}