I tried searching before deciding to ask this but found no definitive answer.
Is there a way to use localStorage? I'd like to save the user's preferences for playing music. Music can get pretty annoying, and so I have a toggle that turns it off. Unfortunately, being unable to store the state of the toggle, those who'd rather play silently are forced to turn it off every single time they load the game.
If there isn't a way to make it work with localStorage, what other methods do you guys use to preserve state between sessions?