[Project_owners] how to initial some variables

aldre dev aldredev at gmail.com
Sat Jan 20 21:42:40 PST 2007


make a pref...(ex. coolextension.installed) set it to false...Tell it..If
coolextension.intsalled=false run your code..Then set
coolextension.installed to false...

On 1/21/07, Amin <amin.eft at gmail.com> wrote:
>
> i have some variable in my extension , i want to set them first time after
> instalation
>
>     var prefs = Components.classes["@mozilla.org/preferences-service;1"].getService(
> Components.interfaces.nsIPrefService).getBranch("
> amin.eft_PhProxy at gmail.com");
>         prefs.setCharPref(id, sData);
>
>
>
> where i must put code like this to set them only one time ?
>
> _______________________________________________
> 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/20070121/8838147a/attachment.html 


More information about the Project_owners mailing list