plasmo icon indicating copy to clipboard operation
plasmo copied to clipboard

[BUG] Error using sendToBackground from background script

Open jellohouse opened this issue 9 months ago • 1 comments

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.

jellohouse avatar Nov 13 '23 19:11 jellohouse

Do you have a minimal example or repo address you can provide?

aiktb avatar Nov 14 '23 14:11 aiktb