made the index webpage into two parts
added register/login links when not logged in when logged in, chat and profile links are shown
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
window.addEventListener("load",async function(){
|
||||
let data = await(await fetch("/api/getuser")).json()
|
||||
if(data["username"] != undefined) {
|
||||
document.getElementById("HasAccount").style=""
|
||||
} else {
|
||||
document.getElementById("NoAccount").style=""
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user