summaryrefslogtreecommitdiff
path: root/WebInterface/NodeJSServer/src/modules/ui/server-listing.js
diff options
context:
space:
mode:
authorTrueKuehli <rctcoaster2000@hotmail.de>2018-10-01 20:55:14 +0200
committerTrueKuehli <rctcoaster2000@hotmail.de>2018-10-01 20:55:14 +0200
commitd24bc122966845bfc793c46aa268529f086af58f (patch)
tree22f0b983774246f208d15a8ddb29516e17588fc4 /WebInterface/NodeJSServer/src/modules/ui/server-listing.js
parent6f162dcf90a6aa671eb351dc25cb01e2d9cbd3cb (diff)
Added Game Page, currently with a chat
Redirects to the game page after login, keeping the connection intact
Diffstat (limited to 'WebInterface/NodeJSServer/src/modules/ui/server-listing.js')
-rw-r--r--WebInterface/NodeJSServer/src/modules/ui/server-listing.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/WebInterface/NodeJSServer/src/modules/ui/server-listing.js b/WebInterface/NodeJSServer/src/modules/ui/server-listing.js
index ace8a0e..78ca323 100644
--- a/WebInterface/NodeJSServer/src/modules/ui/server-listing.js
+++ b/WebInterface/NodeJSServer/src/modules/ui/server-listing.js
@@ -30,8 +30,7 @@ export default class ServerListing {
addElements(array, serverClient, ui) {
for (let server of array) {
const name = server['name'];
- const playerList = server['users'];
- const playerAmount = playerList.length;
+ const playerAmount = server['userCount'];
let serverDiv = document.createElement('div');
let nameSpan = document.createElement('span');