Reset splash screen on show instead of hide

This commit is contained in:
James Lyne 2021-09-01 02:15:51 +01:00
parent ca3d3c7442
commit 5350c2483f

View File

@ -26,6 +26,18 @@ export const showSplash = function() {
return;
}
if(splashError) {
splashError.setAttribute('aria-hidden', 'true');
}
if(splashSpinner) {
splashSpinner.style.visibility = 'visible';
}
if(splashRetry) {
splashRetry.hidden = true;
}
splash.hidden = false;
app.setAttribute('aria-hidden', 'true');
@ -39,18 +51,6 @@ export const hideSplash = () => {
return;
}
if(splashError) {
splashError.setAttribute('aria-hidden', 'true');
}
if(splashSpinner) {
splashSpinner.style.visibility = 'visible';
}
if(splashRetry) {
splashRetry.hidden = true;
}
requestAnimationFrame(() => {
splash.style.opacity = '0';
app.removeAttribute('aria-hidden');