From 0fba7747c865bb7f2b5ec8a2912066459ab6e71d Mon Sep 17 00:00:00 2001 From: James Lyne Date: Mon, 30 Aug 2021 22:02:57 +0100 Subject: [PATCH] Reset splash error state on hide --- src/util/splash.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/util/splash.ts b/src/util/splash.ts index 73e32a7..a2f0a44 100644 --- a/src/util/splash.ts +++ b/src/util/splash.ts @@ -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');