From 57f3197a3989e59e3679fd644237a2f586c1fc7f Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sat, 4 Jan 2025 10:46:32 -0500 Subject: [PATCH] Fix done detection --- src/assets/js/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/js/main.js b/src/assets/js/main.js index 53a6685..0f8ade0 100644 --- a/src/assets/js/main.js +++ b/src/assets/js/main.js @@ -31,7 +31,7 @@ async function readResponse(response) { reader.read().then(( chunk ) => { console.log(`Done: ${JSON.stringify(chunk.done)}`); console.log(`Value: ${new TextDecoder().decode(chunk.value)}`); - if (done) { + if (chunk.done) { return; } read();