From 2f43820f6a3847cad192e6c1d38e85f162276868 Mon Sep 17 00:00:00 2001 From: Justin Reichardt Date: Wed, 16 Nov 2022 18:49:17 -0600 Subject: [PATCH] Clears the list of downloads after each fetch It would keep appending the list to itself, not very useful --- src/viddown.go | 1 + 1 file changed, 1 insertion(+) diff --git a/src/viddown.go b/src/viddown.go index fe29c8a..d341a33 100644 --- a/src/viddown.go +++ b/src/viddown.go @@ -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 === "{}"){ }