Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

The getter and setter look like this

localStorage.setItem('uvz-sound', JSON.stringify(G.soundEnabled));
JSON.parse(localStorage.getItem('uvz-sound'));

and

G.soundEnabled

is a Boolean.