How can i send message from Content Script to SidePanel?

I want to use Chrome MediaDevice API in Content Script UI, but i still need send meesage to my Side panel to make it better view. I don't know which should i use? btw, i dont know what is "BGSW" and what difference it with "CS"
No description
3 Replies
fveiras
fveiras•5mo ago
Did you try with chrome.runtime.sendMessage?
yibo
yibo•5mo ago
getting errors with chrome.runtime.sendMessage: Uncaught (in promise) Error: Could not establish connection. Receiving end does not exist. do you know how to fix this error?
siegerts
siegerts•5mo ago
make sure to return true back to the caller. @yibo
Want results from more Discord servers?
Add your server