2
0
mirror of https://github.com/gchq/CyberChef synced 2025-12-05 23:53:27 +00:00

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

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