Labs/JS Modules: Difference between revisions

Jump to navigation Jump to search
update location of Preferences module
(Updated the usage of the logging module)
(update location of Preferences module)
Line 77: Line 77:
== Preferences ==
== Preferences ==


The [http://melez.com/mozilla/modules/Preferences.js Preferences module] provides an API for accessing application preferences.  Getting and setting prefs is easy:
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");
canmove, Confirmed users
2,056

edits

Navigation menu