I am making a chrome extension. As I am a newbie in this, I don't know how to get permission and declare to link two files in manifest.json for a popup extension( one is.html and the other is a .js file). Due to this, without getting permission and declaring always an error is generated.Please help
{
"name": "YFM (Your Focus Maker)",
"version": "1.0",
"manifest_version": 3,
"description": "To Block Distracting websites,urls etc. and helps to focus on the work",
"action": {
"default_popup": "popupyfm.html",
"default_title": "YFM"
},
"background.service_worker": {
"scripts": ["backgroundyfm.js", "storage.js"]
},
"optional_permissions": ["tabs", "scripting"],
"options_page": "table.html",
"permissions": [
"tabs",
"storage",
"history",
"activeTab",
"scripting"
]
}