Skip to content

Commit

Permalink
update www/src/js/cookie/start.js
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianjnuwu committed Jan 6, 2025
1 parent c19cb58 commit 1fa9cf1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion www/src/js/cookie/start.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1fa9cf1

Please sign in to comment.