Fix running gravity from the web UI (#2639)

This commit is contained in:
Adam Warner
2023-07-17 20:57:52 +01:00
committed by GitHub
+1
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 => {