add debug info on the client side

This commit is contained in:
Mystikfluu 2022-07-24 11:30:09 +02:00
parent 3183ee7eab
commit 4d3e22ebfa

View File

@ -59,7 +59,8 @@ async function postMessage() {
}
async function update_pid() {
let r = (await fetch("/api/pid")).json()
let r = await (await fetch("/api/pid")).json()
console.log("new pid info: ",r)
if(r.error) {
//an error occurred
if(r.error == "you cannot access the api without being logged in") {