From 8c029556731d3114fb8f16633fd2e2961d9359ce Mon Sep 17 00:00:00 2001 From: riperiperi Date: Fri, 28 Aug 2020 11:16:27 +0100 Subject: [PATCH] Fix player list. --- main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.js b/main.js index fbcf907..239efbf 100644 --- a/main.js +++ b/main.js @@ -16,7 +16,7 @@ $(document).ready(function() { $.getJSON("/api/public_games", function(data) { $.each(data, function() { - $(".games-table").append(' ' + this.game_name + '
(' + this.title_id + ')' + this.player_count + '/' + this.max_player_count + '
' + encode(this.players.join(', ')) + ' ' + this.mode + ' (' + this.status + ')'); + $(".games-table").append(' ' + this.game_name + '
(' + this.title_id + ')' + this.player_count + '/' + this.max_player_count + '
' + this.players.map(player => encode(player)).join(', ') + ' ' + this.mode + ' (' + this.status + ')'); }); }); }); \ No newline at end of file