Don't include loading inputs in complete percentage

This commit is contained in:
j433866 2019-05-07 12:00:37 +01:00
parent 97c218cb4c
commit ec4eb22a72
1 changed files with 1 additions and 1 deletions

View File

@ -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 = "";