From 2341c1eddf9da3b0673e45f448e87651c0af6eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?No=C3=A9=20Garnier?= Date: Mon, 16 Jan 2023 11:48:07 +0100 Subject: [PATCH] Correction --- View/src/JS/dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/View/src/JS/dashboard.js b/View/src/JS/dashboard.js index 576175c5..218bea3d 100644 --- a/View/src/JS/dashboard.js +++ b/View/src/JS/dashboard.js @@ -1,5 +1,4 @@ function dashboard () { - xhr.send(null); var xhr = new XMLHttpRequest(); xhr.open('POST', 'http://82.165.180.114/Scripted/index.php?action=getPlayersPseudo', true); xhr.responseType = 'text'; @@ -7,6 +6,7 @@ var playersPseudo = xhr.onload = function () { return JSON.parse(xhr.responseText); } + xhr.send(null); data = [];