I am attempting to establish a communication channel between a specific webpage (for example: www.website.dev) and a Chrome extension that I have created.
While using postMessage allows me to communicate from the webpage to the extension, I am experiencing difficulty doing so from the extension to the webpage.
I have tried Google's example, but it utilizes a background page which complicates things for me.
Thank you for your assistance
EDIT: I apologize, but I am confused about the distinction between content_script and background.js. In my manifest file, I have specified a content script called test.js. What role does "background" play in this context?