extension-js / extension.js

🧩 Plug-and-play, zero-config, cross-browser extension development tool.
https://extension.js.org
MIT License
3.67k stars 93 forks source link

Fix content_scripts not running in the main world #103

Closed cezaraugusto closed 3 months ago

cezaraugusto commented 3 months ago

Fix #66

Depends on #102

How to test

Use any existing content_script and add set it to the "MAIN" world, like:

  "content_scripts": [
    {
      "world": "MAIN",
      "matches": ["https://extension.js.org/*"],
      "js": ["./content/content.ts"]
    }
  ]

And ensure it can be reloaded as usual.