diff options
Diffstat (limited to 'client/src/main.ts')
-rw-r--r-- | client/src/main.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/client/src/main.ts b/client/src/main.ts index a6cc3ba..c8a1758 100644 --- a/client/src/main.ts +++ b/client/src/main.ts @@ -9,9 +9,9 @@ lobby.style.display = "none" join.onsubmit = async function(event) { event.preventDefault() - - const room_code = this.elements.room_code.value.trim() - const player_name = this.elements.name.value.trim() + + const room_code = (<HTMLInputElement>document.getElementById("room_code")).value + const player_name = (<HTMLInputElement>document.getElementById("player_name")).value if (room_code == '') { alert('Please enter a room code') |