From 63efb8c3c3b07b4fcc2908a8a1e35cf84f7edc14 Mon Sep 17 00:00:00 2001 From: James Lyne Date: Fri, 28 May 2021 15:55:44 +0100 Subject: [PATCH] Reduce screenreader spam when showing splash screen errors --- src/util/splash.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/splash.ts b/src/util/splash.ts index 7531825..1a21658 100644 --- a/src/util/splash.ts +++ b/src/util/splash.ts @@ -38,7 +38,7 @@ export const showSplashError = (message: string, fatal: boolean, attempts?: numb splashError.setAttribute('aria-hidden', 'false'); } - if(splashErrorMessage) { + if(splashErrorMessage && splashErrorMessage.innerText !== message) { splashErrorMessage.innerText = message || 'Unknown error'; }