From 89e649c2b88135d2e7ed6c8a618f9ac6e8aa5921 Mon Sep 17 00:00:00 2001 From: Thomas Park Date: Tue, 5 Nov 2024 21:24:54 -0500 Subject: [PATCH] remove user from localStorage --- js/game.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/js/game.js b/js/game.js index 4c13811..fdeab20 100644 --- a/js/game.js +++ b/js/game.js @@ -5,7 +5,6 @@ var game = { level: parseInt(localStorage.level, 10) || 0, answers: (localStorage.answers && JSON.parse(localStorage.answers)) || {}, solved: (localStorage.solved && JSON.parse(localStorage.solved)) || [], - user: localStorage.user || '', changed: false, clickedCode: null, @@ -25,11 +24,6 @@ var game = { $('#language').val(game.language); $('input[value="' + game.colorblind + '"]', '#colorblind').prop('checked', true); - if (!localStorage.user) { - game.user = '' + (new Date()).getTime() + Math.random().toString(36).slice(1); - localStorage.setItem('user', game.user); - } - this.setHandlers(); this.loadMenu(); game.loadLevel(levels[game.level]);