0

I'm trying to send a message from the content script to the injected react app extension (MV3) in same singe tab.

I've tried to use chrome.runtime.sendMessage() but I saw that it triggers the eventListener in all of the tabs, therefore in each of the extension instances. I also saw that is mentioned in the docs -https://developer.chrome.com/docs/extensions/reference/tabs/#method-sendMessage

Is there an alternative for sending a message from the content script to the single tab?

oel2
  • 15
  • 4

0 Answers0