Reduce screenreader spam when showing splash screen errors
This commit is contained in:
parent
9e65a5859c
commit
63efb8c3c3
@ -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';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user