delay splash screen, only show if loading takes too long
This commit is contained in:
parent
5bb0424397
commit
97adff267f
4 changed files with 10 additions and 7 deletions
|
|
@ -80,6 +80,7 @@ const persistedStateOptions = {
|
|||
console.error('Storage error', e)
|
||||
storageError = e
|
||||
}
|
||||
document.querySelector('#splash').classList.remove('initial-hidden')
|
||||
document.querySelector('#mascot').src = `/static/pleromatan_apology${isFox}_small.webp`
|
||||
document.querySelector('#status').removeAttribute('class')
|
||||
document.querySelector('#status').textContent = i18n.global.t('splash.loading')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue