I'm working on porting a Chrome extension over to Firefox. In the Chrome extension, the background script includes JQuery, which is used for AJAX throughout the background scripts.
With the Firefox Jetpack SDK, it looks like i can do:
require("modulename")
but this only works if modulename is a firefox extension module, including the code:
exports.someVar = someLocalVar
in order to make the module functionality available elsewhere. Obviously JQuery isn't set up as a module like this, so there's no way to require it.
Is there some way to include JQuery in my lib/main.js file in the background of my Firefox addon, such that I get access to JQuery in my main() function?