diff --git a/public/js/index.js b/public/js/index.js index 192e422..b3c2f2c 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -7,6 +7,8 @@ while(!username){ socket.emit('user joined', username); } +document.querySelector('h1').innerHTML = "Welcome, "+username; + socket.on('prompt sent', function (prompt) { if(prompt !== document.querySelector('dd').innerHTML){ button.removeAttribute("disabled");