summaryrefslogtreecommitdiff
path: root/client/js
diff options
context:
space:
mode:
authorTyler Murphy <tylerm@tylerm.dev>2023-06-17 01:18:16 -0400
committerTyler Murphy <tylerm@tylerm.dev>2023-06-17 01:18:16 -0400
commit113c6d105a0b06603388e5e0ded90ed169ae0c50 (patch)
tree70af321cdce86a331141e437f6abae3c1cefd74a /client/js
parentts (diff)
downloadtuxman-113c6d105a0b06603388e5e0ded90ed169ae0c50.tar.gz
tuxman-113c6d105a0b06603388e5e0ded90ed169ae0c50.tar.bz2
tuxman-113c6d105a0b06603388e5e0ded90ed169ae0c50.zip
map editor
Diffstat (limited to 'client/js')
-rw-r--r--client/js/main.js4
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;