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:
parent
e7cfcd8688
commit
8801269969
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue