diff --git a/WEB/View/src/pages/Multijoueur/LobbyEnd.php b/WEB/View/src/pages/Multijoueur/LobbyEnd.php index 4463dc8c..9c4d3c96 100644 --- a/WEB/View/src/pages/Multijoueur/LobbyEnd.php +++ b/WEB/View/src/pages/Multijoueur/LobbyEnd.php @@ -39,14 +39,12 @@ xhr.responseType = 'text'; xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); xhr.onload = function () { - if (xhr.status === 200) { - console.log(xhr.responseText); - if (xhr.responseText == "2") { - window.location.href = 'http://82.165.180.114/Scripted/WEB/index.php?action=getGameEtat' - } - }; - xhr.send(null); - } + console.log(xhr.responseText); + if (xhr.responseText == "2") { + window.location.href = 'http://82.165.180.114/Scripted/WEB/index.php?action=getGameEtat' + } + }; + xhr.send(null); } var seconds = ; function countdown() {