mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Fix running gravity from the web UI (#2639)
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user