From 1fa9cf1bd66238fb7dc498cc5abeede49f2a7187 Mon Sep 17 00:00:00 2001 From: SEBASTIAN JN Date: Mon, 6 Jan 2025 17:11:58 -0300 Subject: [PATCH] update www/src/js/cookie/start.js --- www/src/js/cookie/start.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/www/src/js/cookie/start.js b/www/src/js/cookie/start.js index ea4b2a1..4eda438 100644 --- a/www/src/js/cookie/start.js +++ b/www/src/js/cookie/start.js @@ -210,7 +210,11 @@ socket.on("timer", ({ time_game }) => { }); socket.on("game_end", ({ ranking }) => { - localStorage.setItem("cookie", 0); + + $("#cps").text("0"); + $("#click-cookie").text("0"); + + localStorage.setItem("cookie", null); localStorage.setItem("code", null); $(".room-code").hide();