Update script.js

This commit is contained in:
KaseToatz1337
2024-04-26 14:43:02 +02:00
parent d779e3f9b9
commit f73042987b

View File

@ -47,7 +47,7 @@ window.onload = () => {
formData.append("amount", parseInt(amount.value));
text.innerText = "Flooding in progress...";
text.style.color = "green";
var request = fetch("/api/flood", {
var request = await fetch("/api/flood", {
method: "POST",
body: formData
});