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();