Clears the list of downloads after each fetch
It would keep appending the list to itself, not very usefultesting
parent
f20308f7ce
commit
2f43820f6a
|
|
@ -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 === "{}"){
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue