Vyacheslav Podgornyy
Results
2
comments of
Vyacheslav Podgornyy
As a temporary solution I have to parse the manifest to find the right file name ``` const manifest = browser.runtime.getManifest(); const injectFile = manifest.web_accessible_resources.map(e => e.resources).flat().find(e => /\/inject\.[a-zA-Z0-9]+\.js$/.test(e)); try...
The answer to both questions is yes. Everything is working so far, but I haven't written anything complicated yet. I moved inject.js to web_accessible_resources (from content_scripts) and ran registerContentScripts from...