mirror of
https://github.com/pi-hole/web.git
synced 2026-01-09 06:20:56 +08:00
Request ANSI colour codes when calling gravity API (#3662)
This commit is contained in:
commit
ff299898ea
@ -15,7 +15,7 @@ function eventsource() {
|
||||
const outputElement = document.getElementById("output");
|
||||
const gravityBtn = document.getElementById("gravityBtn");
|
||||
const csrfToken = document.querySelector('meta[name="csrf-token"]').getAttribute("content");
|
||||
const url = `${document.body.dataset.apiurl}/action/gravity`;
|
||||
const url = `${document.body.dataset.apiurl}/action/gravity?color=true`;
|
||||
|
||||
if (outputElement.innerHTML.length > 0) {
|
||||
outputElement.innerHTML = "";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user