From 1d25d34ef7cd134986f83cf59a208a8a9acd4a19 Mon Sep 17 00:00:00 2001 From: Donovan Daniels Date: Sat, 26 Dec 2020 21:09:48 -0600 Subject: [PATCH] thing --- src/pages/index.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/pages/index.html b/src/pages/index.html index 1a2a82c..8d4d91c 100755 --- a/src/pages/index.html +++ b/src/pages/index.html @@ -55,10 +55,12 @@

E621 Downloader

function hideProgress() { document.querySelector("div#progress").classList.add("hidden"); } + /** + * @param {(string | number)} t + */ function resetProgress(t) { const e = document.querySelector("div#progress"); - const j = Array.from(e.querySelectorAll("progress")); - if (j.length > 0) j.map(v => e.removeChild(v)); + Array.from(e.querySelectorAll("progress")).map(v => e.removeChild(v)); const v = document.createElement("progress"); v.value = "0"; v.max = t.toString();