fix splash update after splash is gone

This commit is contained in:
Henry Jameson 2024-12-18 16:29:38 +02:00
parent 452859fb0f
commit 331b7dbaa3
2 changed files with 9 additions and 2 deletions

View file

@ -76,7 +76,9 @@ const persistedStateOptions = {
window.splashError = e => splashError(i18n, e)
window.splashUpdate = key => {
document.querySelector('#status').textContent = i18n.global.t(key)
if (document.querySelector('#status')) {
document.querySelector('#status').textContent = i18n.global.t(key)
}
}
try {

View file

@ -118,7 +118,12 @@ export const tryLoadCache = async () => {
}
}
export const applyTheme = (input, onEagerFinish = data => {}, onFinish = data => {}, debug) => {
export const applyTheme = (
input,
onEagerFinish = data => {},
onFinish = data => {},
debug
) => {
const eagerStyles = createStyleSheet(EAGER_STYLE_ID)
const lazyStyles = createStyleSheet(LAZY_STYLE_ID)