diff --git a/src/index.ts b/src/index.ts index ad03a21..e14b316 100644 --- a/src/index.ts +++ b/src/index.ts @@ -80,10 +80,14 @@ router.get("/", async (ctx) => { const { id } = await (await fetch(url, { method: "post" })).json(); do { response = await (await fetch(\`/api/requests/\${id}\`)).json(); - console.log(response); - output.innerHTML = JSON.stringify(response, null, " "); - console.log(response.output); - stdout.innerHTML = response.output; + output.innerHTML = JSON.stringify(response, null, " ").replace( + /\\/static\\/.*.png/g, + '$&' + ); + stdout.innerHTML = response.output.replace( + /\\/static\\/.*.png/g, + '$&' + ); await sleep(1000); } while (response.status !== "finished"); }