I am currently developing a toolbar and sidebar for firefox. I want to have the two share information, but upon loading the .js file I want them to share, it is loaded twice and has two instances instead of one.
How can I get the toolbar and the sidebar access the same information or global variables in a single javascript file?
Thanks in advance.