From 54d814821e3b154e0d857b5973f5baeca4d45543 Mon Sep 17 00:00:00 2001 From: andy-tieu Date: Wed, 7 Aug 2024 12:16:27 -0500 Subject: [PATCH] Revert if statement to else if --- html/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/index.js b/html/index.js index 0d5b987..16f2f5d 100644 --- a/html/index.js +++ b/html/index.js @@ -69,7 +69,7 @@ connection.onmessage = function (evt) { id = obj.playerID; conn = obj.conn; } - if('roundNumber' in obj) { + else if('roundNumber' in obj) { var lobbyScreen = document.getElementById("lobbyScreen"); var gameScreen = document.getElementById("gameScreen"); var t = obj.roundNumber;