I need help with JPM
. I am trying to develop a firefox extension with JPM
. I would like my extension automatically launches when opening firefox, but I can't add an event on the onLoad
I know that with the overlay I can do something like :
window.addEventListener("load", function load(event){
console.log("hello");
},false);
If I add this event to my JPM extension gives me an error :
JPM [error] Message: ReferenceError: window is not defined
Is it possible to do that with JPM
? Or is there another way to launch my firefox extension to the opening?