I wrote a self-invoking function in background.js that does everything I need (subscribes to events, etc.). as soon as i add in manifest.json
"browser_action": { "default_icon": "64.png", "default_popup": "popup.html" }, in this case, background.js is not executed; only the popup.html output is performed without any
How to first execute the js script in the chrome extension, and then output a specific (depending on the conditions in background.js) popup.html?