This commit is contained in:
Suvodip
2024-06-24 19:15:56 +05:30
parent 5c233bafa6
commit cf51757537
28 changed files with 257 additions and 132 deletions

View File

@@ -220,7 +220,7 @@ import Layout from "../../layouts/Layout.astro";
'gameTime': timeDifferenceInSeconds,
'score': totalPoints,
};
console.log(userData);
// console.log(userData);
fetch(`https://phaser-game-api.s38.siliconpin.com/save-data`, {
method: 'POST',
headers: {
@@ -232,7 +232,7 @@ import Layout from "../../layouts/Layout.astro";
if (response.ok) {
document.getElementById('savedMessage').innerHTML = 'Saved Successfully';
} else {
console.log('Something Wrong', response);
// console.log('Something Wrong', response);
}
})
.catch(error => {