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"
3 Replies
Did you try with chrome.runtime.sendMessage?
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?
make sure to return
true
back to the caller. @yibo