You could use localStorage to set a variable to true after first
start.

if (!localStorage.hasStarted) {
    // Do something here

    // Set hasStarted to true
    localStorage.hasStarted = true;
}

On Aug 26, 9:09 pm, The Sailor <[email protected]> wrote:
> I want to do a specific action only for the 1st time the extension
> gets installed on the chrome. Is there some event that the browser
> would send that i can listen to or some other way for my extension to
> know that it is the 1st time it got initiated after installation ?
>
> Basiaclly, I want to do few actions only on post installation of the
> extension.
>
> Thanks,
> - The Sailor.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-extensions" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/chromium-extensions?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to