[Project_owners] how to initial some variables
Nickolay Ponomarev
asqueella at gmail.com
Sun Jan 21 13:51:38 PST 2007
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 ?
>
Do you mean preferences? Why don't you use default preferences?
http://developer.mozilla.org/en/docs/Code_snippets:Preferences#Default_preferences
Nickolay
More information about the Project_owners
mailing list