Update script.js

This commit is contained in:
KaseToatz1337
2024-04-26 14:24:45 +02:00
parent 7c1c442363
commit 5deebd11a7

View File

@ -52,8 +52,9 @@ window.onload = () => {
body: formData
})
response = await request.json();
text.innerText = response["message"];
if (response["type"] == "error")
console.log(response.message);
text.innerText = response.message;
if (response.type == "error")
{
text.style.color = "red";
}