Clears the list of downloads after each fetch

It would keep appending the list to itself, not very useful
testing
Justin Reichardt 2022-11-16 18:49:17 -06:00
parent f20308f7ce
commit 2f43820f6a
1 changed files with 1 additions and 0 deletions

View File

@ -54,6 +54,7 @@ fetch("currentwork").then(response => {
}).then(json => {
parsed = JSON.parse(json)
console.log(parsed);
document.getElementById("list").innerText = "";
Object.entries(parsed).forEach(([key, value]) => {document.getElementById("list").innerText += value});
if (json === "{}"){
}