Some small fixes

This commit is contained in:
2021-05-26 22:58:00 +02:00
parent 50327dfffc
commit 5aa0b95034
3 changed files with 12 additions and 12 deletions

View File

@@ -1,12 +1,12 @@
let socket;
let username = prompt("Please enter your name");
//let room_name = prompt("Please enter room name", "1234");
let room_name = prompt("Please enter room name");
let connected = false;
window.addEventListener('load', function () {
socket = io();
socket.on('login', function (data) {
socket.on('login', function () {
connected = true;
addLogMessage("Welcome " + username + "!");
});