diff --git a/src/assets/js/main.js b/src/assets/js/main.js index 038f87d..515f874 100644 --- a/src/assets/js/main.js +++ b/src/assets/js/main.js @@ -35,9 +35,10 @@ async function readResponse(response) { if (chunk.value) { const text = decoder.decode(chunk.value, { stream: true }); finishedResponse += text; - outputArea.innerHTML = finishedResponse; } if (chunk.done) { + const responseJSON = JSON.parse(finishedResponse); + console.log(responseJSON); return; } read();