I\'m currently working on a Mozilla Firefox addon.
I have set up a panel and attached a content script to it. I need to communicate between the content scripts and
Content scripts do not have access to require. Instead self is already declared.
require
self
Just remove the require line from popup.js (but not main.js).
popup.js
main.js
See Communicating using "port".