forked from Ailur/burgernotes-server
fixes
This commit is contained in:
parent
a50ba6758e
commit
f248efbcdf
|
@ -67,10 +67,12 @@
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
async function doStuff() {
|
async function doStuff() {
|
||||||
let responseData = await response.json()
|
let responseData = await response.json()
|
||||||
|
if (response.status == 200) {
|
||||||
let youThing = document.getElementById("youThing")
|
let youThing = document.getElementById("youThing")
|
||||||
youThing.classList.remove("hidden")
|
youThing.classList.remove("hidden")
|
||||||
youThing.innerText = "You, " + responseData["username"] + ", for using Burgernotes!"
|
youThing.innerText = "You, " + responseData["username"] + ", for using Burgernotes!"
|
||||||
}
|
}
|
||||||
|
}
|
||||||
doStuff()
|
doStuff()
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue