From 334fbea381fc6d47324102d3a4a985e2f46b5d62 Mon Sep 17 00:00:00 2001 From: swee Date: Sat, 28 Dec 2024 20:59:26 -0800 Subject: [PATCH] Update script.js --- script.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/script.js b/script.js index 90654ea..bd8d4fd 100644 --- a/script.js +++ b/script.js @@ -10,11 +10,15 @@ fetch ("block.txt") fetch ("link.txt") .then(x => x.text()) .then(y => document.getElementById("links").innerHTML = y); +fetch ("lastquery.txt") + .then(x => x.text()) + .then(y => document.getElementById("aichat").innerHTML = y); async function refresh(){ // Refresh the HTML to show the spinners document.getElementById("run").innerHTML = "..."; document.getElementById("blocked").innerHTML = "..."; document.getElementById("links").innerHTML = "..."; + document.getElementById("aichat").innerHTML = "..."; // Then fetch the values the same way as on the first part of the script. fetch ("run.txt") .then(x => x.text()) @@ -25,4 +29,7 @@ async function refresh(){ fetch ("link.txt") .then(x => x.text()) .then(y => document.getElementById("links").innerHTML = y); + fetch ("lastquery.txt") + .then(x => x.text()) + .then(y => document.getElementById("aichat").innerHTML = y); } \ No newline at end of file