diff --git a/static/js/chat.js b/static/js/chat.js index e2db3c9..6c5a0eb 100644 --- a/static/js/chat.js +++ b/static/js/chat.js @@ -141,7 +141,7 @@ function setNotifyBox(msg = "") { // Button Wrapper Functions function auth() { let pass = prompt("Enter pass"); - if (pass != "") { + if (pass != "" && pass !== null) { sendMessage("/auth " + pass); } }