- bcolor: localStorage["bcolor"] || "lichess",
- sound: parseInt(localStorage["sound"]) || 2,
- hints: parseInt(localStorage["hints"]) || 1,
- coords: !!eval(localStorage["coords"]),
- highlight: !!eval(localStorage["highlight"]),
- sqSize: parseInt(localStorage["sqSize"]),
+ bcolor: localStorage.getItem("bcolor") || "lichess",
+ sound: parseInt(localStorage.getItem("sound")) || 1,
+ hints: localStorage.getItem("hints") == "true",
+ highlight: localStorage.getItem("highlight") == "true",