canmove, Confirmed users
2,056
edits
(Updated the usage of the logging module) |
(update location of Preferences module) |
||
Line 77: | Line 77: | ||
== Preferences == | == Preferences == | ||
The [http:// | The [http://hg.mozdev.org/jsmodules/file/tip/Preferences.js Preferences module] provides an API for accessing application preferences. Getting and setting prefs is easy: | ||
let foo = Preferences.get("extensions.test.foo"); | let foo = Preferences.get("extensions.test.foo"); |