Hydra

Storage (Data)

Create a storage object:

var storage = lib.data.createStorage('example-key')

Then use it:

storage.set("key", "value")
storage.get("key")
storage.remove("key")

As long as the example-key stays the same, data will be saved and loaded when exiting/opening the page.