diff --git a/public/js/chat.js b/public/js/chat.js index 4bd1fc72..f201a592 100644 --- a/public/js/chat.js +++ b/public/js/chat.js @@ -13,6 +13,8 @@ let newbtn = document.querySelector('#newbtn'); let close = document.querySelector('#close'); let cancel = document.querySelector('#cancel'); + let homebtn = document.querySelector('#homebtn'); + socket.emit('privateRoom', { "room": "private room" }); @@ -73,6 +75,7 @@ "hideDuration": 300, "timeOut": 4000 }; + socket.disconnect(); toastr.warning(data.warning.message, data.warning.title); }); @@ -101,4 +104,4 @@ window.onload = () => { message.focus(); -} \ No newline at end of file +}