Skip to content

Commit

Permalink
Actually recurse
Browse files Browse the repository at this point in the history
  • Loading branch information
shawyu-okta committed Oct 30, 2024
1 parent a523756 commit 64f4c32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@
const newContent = document.createTextNode(outputLine);
newLine.appendChild(newContent);

setTimeout(makeRequest, 2000);
outputElement.appendChild(newLine);
} else {
setTimeout(makeRequest, 2000);
throw new Error('HTTP error! Status: ' + response.status);
}
};

setTimeout(() => {
makeRequest().finally(makeRequest);
makeRequest();
}, 2000);
};
</script>
Expand Down

0 comments on commit 64f4c32

Please sign in to comment.