Do not hide progress bar, leaving the preload element.

This commit is contained in:
Bartosz Taudul 2022-10-18 21:01:01 +02:00
parent 9bc8580f99
commit b9fee59ac8
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -133,15 +133,13 @@
progressElement.hidden = false;
spinnerElement.hidden = false;
preloadElement.hidden = false;
} else {
} else if (!text) {
progressElement.value = null;
progressElement.max = null;
progressElement.hidden = true;
if (!text) {
preloadElement.hidden = true;
spinnerElement.style.display = 'none';
resizeHandler();
}
preloadElement.hidden = true;
spinnerElement.style.display = 'none';
resizeHandler();
}
statusElement.innerHTML = text;
},