Bhavik Goyal
Bhavik Goyal

Reputation: 2796

Perform action at each time firefox is started

I am working on the firefox addon. In this i have to add the spefic code that runs each time the firefox is loaded. So where should i write this block of code.

Which event should i add and should it be in overlay.js file?

If my information is incomplete, please specify what else should i post here.

Thanks BHAVIK GOYAL

Upvotes: 0

Views: 63

Answers (1)

CAFxX
CAFxX

Reputation: 30301

Execute this in the main overlay:

window.addEventListener( "load", function() {
  // code to run at startup
}, false );

Upvotes: 2

Related Questions