Update script.js
This commit is contained in:
@ -52,8 +52,9 @@ window.onload = () => {
|
|||||||
body: formData
|
body: formData
|
||||||
})
|
})
|
||||||
response = await request.json();
|
response = await request.json();
|
||||||
text.innerText = response["message"];
|
console.log(response.message);
|
||||||
if (response["type"] == "error")
|
text.innerText = response.message;
|
||||||
|
if (response.type == "error")
|
||||||
{
|
{
|
||||||
text.style.color = "red";
|
text.style.color = "red";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user