Fix canceling the Auth popup dialog

Don't try to auth if the user cancels out of the auth popup.
This commit is contained in:
Zorchenhimer 2019-03-30 15:13:57 -04:00
parent e7cfcd8688
commit 8801269969
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}