From ec4eb22a7204ef58aeb7a46e8cc3304c26f28884 Mon Sep 17 00:00:00 2001 From: j433866 Date: Tue, 7 May 2019 12:00:37 +0100 Subject: [PATCH] Don't include loading inputs in complete percentage --- src/web/InputWaiter.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web/InputWaiter.mjs b/src/web/InputWaiter.mjs index d8c55751..547fc9a9 100644 --- a/src/web/InputWaiter.mjs +++ b/src/web/InputWaiter.mjs @@ -747,7 +747,7 @@ class InputWaiter { const inputTitle = document.getElementById("input").firstElementChild; if (loaded < total) { - const percentComplete = (loaded + loading) / total * 100; + const percentComplete = loaded / total * 100; inputTitle.style.background = `linear-gradient(to right, var(--title-background-colour) ${percentComplete}%, var(--primary-background-colour) ${percentComplete}%)`; } else { inputTitle.style.background = "";