Let's introduce a new example that shows how to send messages from the page (e.g. click event) to a devtools panel (e.g. to render list of click events). Sending messages can't be done directly, it needs to go through background page. The example should nicely explain the concept.
Let's introduce a new example that shows how to send messages from the page (e.g. click event) to a devtools panel (e.g. to render list of click events). Sending messages can't be done directly, it needs to go through background page. The example should nicely explain the concept.
This page could be useful: https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Content_scripts#Communicating_with_background_scripts
Honza