-
Goal: I'd like to use chrome.runtime.sendMessage to communicate with my chrome extension's sidebar.
-
Steps: I have attempted to use chrome.runtime (our retool url is in the externally_connectable.matches array in the manifest)
-
Details: according to chrome's documentation, you need to use chrome.runtime.sendMessage from websites listed in the externally_connectable.matches array externally_connectable | Chrome Extensions | Chrome for Developers
-
Screenshots:
I've attempted just console.logging the chrome object and it does exist, but there's no runtime functionality so I can't send messages from it. We're currently using custom web events that are intercepted by our background script and then sent forward to the sidepanel but this requires a few permissions that can increase review time