fix splash update after splash is gone
This commit is contained in:
parent
452859fb0f
commit
331b7dbaa3
|
@ -76,7 +76,9 @@ const persistedStateOptions = {
|
||||||
|
|
||||||
window.splashError = e => splashError(i18n, e)
|
window.splashError = e => splashError(i18n, e)
|
||||||
window.splashUpdate = key => {
|
window.splashUpdate = key => {
|
||||||
document.querySelector('#status').textContent = i18n.global.t(key)
|
if (document.querySelector('#status')) {
|
||||||
|
document.querySelector('#status').textContent = i18n.global.t(key)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -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 eagerStyles = createStyleSheet(EAGER_STYLE_ID)
|
||||||
const lazyStyles = createStyleSheet(LAZY_STYLE_ID)
|
const lazyStyles = createStyleSheet(LAZY_STYLE_ID)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue