Luft-on
Luft-on

Reputation: 179

Google chrome extensions launch event

I'm working with my first chrome extension, so I do not know how to run specific script with browser launch event. For my case I need to load background page, but it has http protocol, so as I read here I can load it using window.open but I need to load only once, how can I do it?

Upvotes: 0

Views: 1031

Answers (1)

Jason Hall
Jason Hall

Reputation: 20920

Your background page will start executing when the browser is opened (and only when the browser opens). So if you need to do something then, you can just write it directly in the code in your background.html.

Upvotes: 1

Related Questions