fix some anti pattern stuff

This commit is contained in:
Mystikfluu
2023-02-10 19:24:05 +01:00
parent 0a46eeee9f
commit 3254d01581
21 changed files with 130 additions and 151 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ async function register() {
alert("Username is too long!")
return;
}
if(document.getElementById("user").value.search("@") != -1) {
if(document.getElementById("user").value.search("@") !== -1) {
alert("User cannot contain '@' character!")
return;
}
@@ -31,7 +31,7 @@ async function register() {
}
function passkeydown(e) {
if(e.code == "Enter") {
if(e.code === "Enter") {
register()
}
}