[Project_owners] First time after installing Extension

Amin amin.eft at gmail.com
Fri Dec 22 04:51:54 PST 2006


ok but it doesnt work after update !!!
i want to works every time user install new version or same version

On 12/22/06, Brian King <brian at mozdev.org> wrote:
>
> On 22/12/2006 11:21 (CET), Amin wrote:
> > any body know how to run a javascript code only one time after
> > installing extesion ,
> >
> > what i must add to install.rdf ?
>
> Have a default preference, say "extensions.myapp.firstrun", and set it
> to true.
>
> Check it every time at startup. If true, execute the code, and if false
> do not. Once your code is executed, you can set it to false yourself to
> ensure the code is not run on subsequent startup.
>
> --
> Brian King
> www.mozdev.org - free project hosting for the Mozilla community
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> http://mozdev.org/mailman/listinfo/project_owners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/project_owners/attachments/20061222/8c842928/attachment.html 


More information about the Project_owners mailing list