Hello:)
To add a popup html to a chrome extension you will need to add the following code to the manifest.json file
"action": {
"default_popup": "popup.html"
},
"content_scripts": [
{
"matches": [
"<all_urls>"
],
"js": ["popup.js"],
"css": ["popup.css"]
}
]
and make the _popup.html file_
, _popup.css_
, and the _popup.js _
files.
Top comments (2)
Thanks for the code snippet.
your welcome