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