BEX communication issue
I am having a hard time understanding how to accomplish this. I am sure that it is because of my lack of experience in developing browser extensions.
My goal is as follows:
I have a web page with list of links on it. I want to create an extension in which I would be able to upload a CSV file in the popup window that would then read all of the links on the page and execute a POST request to a predefined URL with the content from the CSV file.
What I have created so far is button in the popup that emits an event when clicked that the background script reads. The background script then emits an event that the content script reads and responds to. Here is where I am blocked, because the response from the content script never reaches background script.
What am I doing wrong here?
During my testing it seams that the content script cannot respond to event emitted in the background script.
Can you show your background-hooks and content-hooks code please (slimmed down to show the issue).
The content hooks can respond / send events to the background so that’s not the problem here.
After trying to create a minimum version to reproduce the issue, it seems to work. I guess it was a PEBCAK type problem!