1

I'm currently playing around with the Ubuntu webapps preview. For some cases it may be useful to store some configuration settings. Does anyone know if this is possible?

Michael W
  • 213

1 Answers1

2

You can use HTML Storage for configuration management. This is not Ubuntu specific. For example:

// When user decides to have the application print "FOO" on startup
localStorage["print_FOO"] = true;

// And then later, when the application launches in another session
if (localStorage["print_FOO"]) {
    alert("FOO");
}

You can read about local storage in more detail at Dive into HTML5.

Jjed
  • 14,064