Reduce screenreader spam when showing splash screen errors

This commit is contained in:
James Lyne 2021-05-28 15:55:44 +01:00
parent 9e65a5859c
commit 63efb8c3c3

View File

@ -38,7 +38,7 @@ export const showSplashError = (message: string, fatal: boolean, attempts?: numb
splashError.setAttribute('aria-hidden', 'false'); splashError.setAttribute('aria-hidden', 'false');
} }
if(splashErrorMessage) { if(splashErrorMessage && splashErrorMessage.innerText !== message) {
splashErrorMessage.innerText = message || 'Unknown error'; splashErrorMessage.innerText = message || 'Unknown error';
} }