David Duong wrote:
I meant to write:
var prefs = Components.classes["@ mozilla.org/preferences-service;1"].
getService(Components.interfaces.nsIPrefBranch);
prefs.resetBranch('extensions.termblaster.');
Is there a standard way to reset preferences?
Use deleteBranch. e.g.
var prefs = Components.classes["@mozilla.org/preferences-service;1"].
getService(Components.interfaces.nsIPrefBranch);
prefs.deleteBranch("extensions.termblaster");
I think this clears the profile prefs.js of any entries for the given
branch.
--
Brian King
www.mozdev.org - free project hosting for the Mozilla community
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners