From f248efbcdf034fee56034e4e62de0d02ef2baa46 Mon Sep 17 00:00:00 2001 From: maaa Date: Fri, 3 Nov 2023 17:54:50 +0100 Subject: [PATCH] fixes --- templates/shutdown.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/templates/shutdown.html b/templates/shutdown.html index f0741f3..b66aaa6 100644 --- a/templates/shutdown.html +++ b/templates/shutdown.html @@ -67,9 +67,11 @@ .then((response) => { async function doStuff() { let responseData = await response.json() - let youThing = document.getElementById("youThing") - youThing.classList.remove("hidden") - youThing.innerText = "You, " + responseData["username"] + ", for using Burgernotes!" + if (response.status == 200) { + let youThing = document.getElementById("youThing") + youThing.classList.remove("hidden") + youThing.innerText = "You, " + responseData["username"] + ", for using Burgernotes!" + } } doStuff() })