From 209fd390236451dd8641fdcbd5c0b6d309be46f6 Mon Sep 17 00:00:00 2001 From: Justin Colangelo Date: Wed, 3 Aug 2022 14:50:26 -0400 Subject: [PATCH] change show and hide to only remove or add class --- public/js/Room.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/js/Room.js b/public/js/Room.js index fefcf161..ce3fee26 100644 --- a/public/js/Room.js +++ b/public/js/Room.js @@ -617,11 +617,11 @@ function roomIsReady() { } function hide(elem) { - elem.className = 'hidden'; + elem.classList.add('hidden'); } function show(elem) { - elem.className = ''; + elem.classList.remove('hidden'); } function setColor(elem, color) {