Reset splash error state on hide

This commit is contained in:
James Lyne 2021-08-30 22:02:57 +01:00
parent 882efa8373
commit 0fba7747c8

View File

@ -39,6 +39,18 @@ 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');