try 3 to fix bugs for now by commenting them will actualy fix latter!

This commit is contained in:
RezHackXYZ 2025-05-29 16:10:12 +05:30
parent 32d0a311f1
commit c0d9668036
No known key found for this signature in database

View file

@ -90,7 +90,7 @@ function GameWin() {
toast.success("You win!"); toast.success("You win!");
data.value[WordLegnth.v].push(words.v.length); data.value[WordLegnth.v].push(words.v.length);
localStorage.setItem("WordleGamesData", JSON.stringify(data.value)); //localStorage.setItem("WordleGamesData", JSON.stringify(data.value));
newGame(); newGame();
} }
@ -204,7 +204,8 @@ export let data = $state({
}, },
}); });
let WordleGamesData = localStorage.getItem("WordleGamesData") || ""; // let WordleGamesData = localStorage.getItem("WordleGamesData") || "";
let WordleGamesData = "";
if (WordleGamesData != "") { if (WordleGamesData != "") {
data.value = JSON.parse(WordleGamesData); data.value = JSON.parse(WordleGamesData);