plasmo
plasmo copied to clipboard
[BUG] Error using sendToBackground from background script
What happened?
Trying to call sendToBackground to one of my message handlers from within another background message handler.
I get Error: Could not establish connection. Receiving end does not exist.
But it's inconsistent, sometimes it works...
Version
Latest
What OS are you seeing the problem on?
MacOSX
What browsers are you seeing the problem on?
Chrome
Relevant log output
Error: Could not establish connection. Receiving end does not exist.
(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.
Do you have a minimal example or repo address you can provide?