plasmo
plasmo copied to clipboard
[BUG] Example code in documentation throws an error. Sending a message from MAIN world CS to Background.
What happened?
Docs example of sending a message from MAIN world CS to background throws an error. When trying to send a message to background thread from MAIN world CS I get this error:
Error: Extension runtime is not available
Specifically this example in docs: https://docs.plasmo.com/framework/messaging#:~:text=contents/componentInTheMainWorld.tsx
Version
Latest
What OS are you seeing the problem on?
Windows
What browsers are you seeing the problem on?
Chrome, Microsoft Edge
Relevant log output
No response
(OPTIONAL) Contribution
- [ ] I would like to fix this BUG via a PR
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
- [X] I checked the current issues for duplicate problems.