From 4294b5b0219cb34b5fdf69a19477dcc0073da90c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Wed, 11 Jan 2023 18:31:07 +0100 Subject: [PATCH] Test --- WEB/View/src/pages/Multijoueur/LobbyEnd.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WEB/View/src/pages/Multijoueur/LobbyEnd.php b/WEB/View/src/pages/Multijoueur/LobbyEnd.php index 9c4d3c96..17cf92e0 100644 --- a/WEB/View/src/pages/Multijoueur/LobbyEnd.php +++ b/WEB/View/src/pages/Multijoueur/LobbyEnd.php @@ -35,13 +35,13 @@ function checkIsEnd() { console.log("checkIsEnd"); var xhr = new XMLHttpRequest(); - xhr.open('POST', 'http://82.165.180.114/Scripted/WEB/index.php?action=endGame', true); + xhr.open('POST', 'http://82.165.180.114/Scripted/WEB/index.php?action=getGameEtat', true); xhr.responseType = 'text'; xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.onload = function () { console.log(xhr.responseText); if (xhr.responseText == "2") { - window.location.href = 'http://82.165.180.114/Scripted/WEB/index.php?action=getGameEtat' + window.location.href = 'http://82.165.180.114/Scripted/WEB/index.php?action=endGame' } }; xhr.send(null);