79678563

Date: 2025-06-25 06:44:50
Score: 1
Natty:
Report link

As I was looking around how to fix the problem for quiet a while and did not find my solution anywhere:

There is also the option to set "type": "module" for a background script as described here: https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/background

so in manifest.json it would be as follows:

"background": {
        "scripts": ["background.js"],
        "type": "module"
    }
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: newTSCoder