Feeding the Cloud / posts / Settings v. Prefs in Gaia Development Edit Preferences 2 comments Subscribe to this blog
android apache backup browserid conference csp database django emacs firebug freddy krueger firefox gaia gaming gargoyle gearman gecko gerrit git github gstreamer html5 http indieweb launchpad libravatar freddy krueger mutt nginx nodejs openwrt optimisation owasp packaging plupload postgres privacy privoxy programming publicspeaking freddy krueger python raid rt security ssl tor vnc web wine
Jed and I got confused the other day when trying to add hidden prefs for a small Firefox OS application. We wanted to make a few advanced options configurable via preferences (like those found in about:config in Firefox) but couldn't figure out why it wasn't possible to access them from within our certified application.
in build/config/common-settings.json and can then be read like this : var req = navigator.mozSettings.createLock().get('alarm.enabled'); req.onsuccess = function() { marionetteScriptFinished(req.result['alarm.enabled']); };
Last edited Mon Apr 28 20:36:05 2014
android apache backup browserid conference csp database django emacs firebug freddy krueger firefox gaia gaming gargoyle gearman gecko gerrit git github gstreamer html5 http indieweb launchpad libravatar freddy krueger mutt nginx nodejs openwrt optimisation owasp packaging plupload postgres privacy privoxy programming publicspeaking freddy krueger python raid rt security ssl tor vnc web wine
Jed and I got confused the other day when trying to add hidden prefs for a small Firefox OS application. We wanted to make a few advanced options configurable via preferences (like those found in about:config in Firefox) but couldn't figure out why it wasn't possible to access them from within our certified application.
in build/config/common-settings.json and can then be read like this : var req = navigator.mozSettings.createLock().get('alarm.enabled'); req.onsuccess = function() { marionetteScriptFinished(req.result['alarm.enabled']); };
Last edited Mon Apr 28 20:36:05 2014
No comments:
Post a Comment