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 = [];