Messaging Ports support in Firefox

How can I send a message from the content script to the side panel? I see two options. 1. Use chrome.runtime.sendMessage in the content and chrome.runtime.onMessage.addListener in my sidepanel component. 2. Use ports. I want to support firefox in the future, does Ports API support Firefox? Also it seems like pallas doesn't work.
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?