mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 16:26:18 +08:00
fixed bug introduced by moving from cookies to local storage
This commit is contained in:
parent
ed08fb234b
commit
b4f292e7f0
|
@ -39,7 +39,7 @@ export function toggle(tagid, nosave = false) {
|
|||
export function loadActiveFromLocalStorage() {
|
||||
// let newTags = $.cookie("activeTags");
|
||||
let newTags = window.localStorage.getItem("activeTags");
|
||||
if (newTags !== undefined && newTags !== "") {
|
||||
if (newTags != undefined && newTags !== "") {
|
||||
try {
|
||||
newTags = JSON.parse(newTags);
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in a new issue