Update Python tools
This commit is contained in:
@@ -126,12 +126,14 @@ for (const form of document.querySelectorAll("form[data-wait-for-result]")) {
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
// Disabled fields are omitted from FormData, so collect values first.
|
||||
const formData = new FormData(form);
|
||||
setWaiting(true);
|
||||
showResult("Running...", "running");
|
||||
try {
|
||||
const response = await fetch(form.action, {
|
||||
method: "POST",
|
||||
body: new FormData(form),
|
||||
body: formData,
|
||||
headers: { Accept: "application/json" },
|
||||
});
|
||||
const data = await response.json();
|
||||
|
||||
Reference in New Issue
Block a user