diff options
Diffstat (limited to 'client/js')
-rw-r--r-- | client/js/main.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/js/main.js b/client/js/main.js index c80f8f3..7e97bcb 100644 --- a/client/js/main.js +++ b/client/js/main.js @@ -17,8 +17,8 @@ lobby.style.display = "none"; join.onsubmit = function (event) { return __awaiter(this, void 0, void 0, function* () { event.preventDefault(); - const room_code = this.elements.room_code.value.trim(); - const player_name = this.elements.name.value.trim(); + const room_code = document.getElementById("room_code").value; + const player_name = document.getElementById("player_name").value; if (room_code == '') { alert('Please enter a room code'); return; |