fix some anti pattern stuff
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
window.addEventListener("load",async function(){
|
||||
let data = await(await fetch("/api/getuser")).json()
|
||||
if(data["username"] != undefined) {
|
||||
if(data["username"] !== undefined) {
|
||||
document.getElementById("HasAccount").style=""
|
||||
} else {
|
||||
document.getElementById("NoAccount").style=""
|
||||
|
||||
Reference in New Issue
Block a user