From 1a71184bcbf714d266e80d186fd666d393ed5981 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 19 Nov 2021 02:45:51 +0100 Subject: Clean up stylesheets. Don't show options in game lists. --- public/join.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public/join.js') diff --git a/public/join.js b/public/join.js index 898113b..f79eabc 100644 --- a/public/join.js +++ b/public/join.js @@ -96,9 +96,9 @@ function update() { if (player) { if (game.status > 0) { if (is_active(player, role)) - element.className = "is_active"; + element.classList.add("is_active"); else - element.className = ""; + element.classList.remove("is_active"); if (player.user_id === user_id) element.innerHTML = `Play`; else -- cgit v1.2.3