From 4d3e22ebfa346a75f07ea429b856c205ee921f03 Mon Sep 17 00:00:00 2001 From: Mystikfluu Date: Sun, 24 Jul 2022 11:30:09 +0200 Subject: [PATCH] add debug info on the client side --- js/posts.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/posts.js b/js/posts.js index 13b95a0..41a6279 100644 --- a/js/posts.js +++ b/js/posts.js @@ -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") {