I am currently developing a firefox extension with jpm.when I make an jpm init
I have a js file index.js
. In this file I can include different sdk with require
for example var system = require("sdk/system");
The problem is that if I have another js file I attach to my tab, I go well at my job but worries if I want to include an SDK in the file I get an error
Require is no defined
Require
only works in index.js file. How to access a sdk in different js file? Because I want to use the sdk sdk/request
to query xmlHttpRequest