logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: 331b7dbaa3b112135f8ff6e84216ae1d4531135b
parent 452859fb0f9abcda7093f2c19039985350a69278
Author: Henry Jameson <me@hjkos.com>
Date:   Wed, 18 Dec 2024 16:29:38 +0200

fix splash update after splash is gone

Diffstat:

Msrc/main.js4+++-
Msrc/services/style_setter/style_setter.js7++++++-
2 files changed, 9 insertions(+), 2 deletions(-)

diff --git 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 @@ -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)