some hotfixes

This commit is contained in:
2026-03-21 01:43:46 +01:00
parent edc065ca0c
commit 101820581e
9 changed files with 286 additions and 28 deletions
+1 -2
View File
@@ -1,5 +1,3 @@
// Fonction et variables essentiel
async function SqlRequest(action, params = {}) {
@@ -96,6 +94,7 @@ loginForm.addEventListener('submit', async function(event) {
await SqlRequest('addPlayer', {game_id: gameId, name: player.value, money: start_money});
}
const result = await SqlRequest('setFirstPlayer', {game_id: gameId})
console.log(result)
if (result.success) {
window.location.href = 'admin-login.html?game_id=' + gameId;
} else {