From a9e8b64fc343206e637d8fa39faab9d1e1d578eb Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Sat, 4 Jan 2025 11:15:42 -0500 Subject: [PATCH] . --- src/assets/js/main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/assets/js/main.js b/src/assets/js/main.js index e2976be..46fe5cd 100644 --- a/src/assets/js/main.js +++ b/src/assets/js/main.js @@ -26,10 +26,10 @@ async function readResponse(response) { const decoder = new TextDecoder('utf-8'); try { + let finishedResponse = ''; + let JSONResponse = new Array(); + let cleanResponse = new Array(); function read() { - let finishedResponse = ''; - let JSONResponse = new Array(); - let cleanResponse = new Array(); // Recursive function to read the stream reader.read().then(( chunk ) => { console.log(`Done: ${JSON.stringify(chunk.done)}`);