Update script.js
This commit is contained in:
@ -47,7 +47,7 @@ window.onload = () => {
|
|||||||
formData.append("amount", parseInt(amount.value));
|
formData.append("amount", parseInt(amount.value));
|
||||||
text.innerText = "Flooding in progress...";
|
text.innerText = "Flooding in progress...";
|
||||||
text.style.color = "green";
|
text.style.color = "green";
|
||||||
var request = fetch("/api/flood", {
|
var request = await fetch("/api/flood", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
body: formData
|
body: formData
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user