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 => {
|
}).then(json => {
|
||||||
parsed = JSON.parse(json)
|
parsed = JSON.parse(json)
|
||||||
console.log(parsed);
|
console.log(parsed);
|
||||||
|
document.getElementById("list").innerText = "";
|
||||||
Object.entries(parsed).forEach(([key, value]) => {document.getElementById("list").innerText += value});
|
Object.entries(parsed).forEach(([key, value]) => {document.getElementById("list").innerText += value});
|
||||||
if (json === "{}"){
|
if (json === "{}"){
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue