diff --git a/src/main.js b/src/main.js index f63deb49..eee463cc 100644 --- a/src/main.js +++ b/src/main.js @@ -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 { diff --git a/src/services/style_setter/style_setter.js b/src/services/style_setter/style_setter.js index d0a0ee08..3791c6f3 100644 --- a/src/services/style_setter/style_setter.js +++ b/src/services/style_setter/style_setter.js @@ -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)