INNER CODE UNIT · Python
fetchDashboard
yohey-w/multi-agent-shogun · scripts/dashboard-viewer.py:169
async function fetchDashboard() {
const res = await fetch('/api/dashboard');
return await res.text();
}
async function render() {
const md = await fetchDashboard();
contentEl.innerHTML = marked.parse(md);
}
function setStatus(ok, text) {
dot.className = 'dot' + (ok ? '' : ' stale');
statusText.textContent = text;
}
async function poll() {
try {
const mtime = await fetchMtime();