Fix gravity from the web UI

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2023-07-17 20:14:19 +02:00
parent 1377cbc496
commit e0e10e7c5f

View File

@@ -26,6 +26,7 @@ function eventsource() {
// eslint-disable-next-line compat/compat
fetch("/api/action/gravity", {
method: "POST",
headers: { "X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr("content") },
})
// Retrieve its body as ReadableStream
.then(response => {