From 8801269969ecd1cf4bd44a403bb5128e4655c48c Mon Sep 17 00:00:00 2001 From: Zorchenhimer Date: Sat, 30 Mar 2019 15:13:57 -0400 Subject: [PATCH] Fix canceling the Auth popup dialog Don't try to auth if the user cancels out of the auth popup. --- static/js/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }