Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions live_chat_app/js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const messageInput = document.getElementById('messageInp')
const messageContainer = document.querySelector(".container")


var audio = new Audio('ring.mp3');
let audio = new Audio('ring.mp3');

//function which will append event info to the container
const append = (message , position)=>{
Expand Down Expand Up @@ -44,4 +44,4 @@ form.addEventListener('submit',(e)=>{
append(`You : ${message}`,'right');
socket.emit('send',message);
messageInput.value = ''
})
})