remove splash when it's done
This commit is contained in:
parent
711eb24504
commit
e004c4e087
|
@ -146,7 +146,11 @@ export default {
|
|||
},
|
||||
removeSplash () {
|
||||
document.querySelector('#status').textContent = this.$t('splash.fun_' + Math.ceil(Math.random() * 4))
|
||||
document.querySelector('#splash').classList.add('hidden')
|
||||
const splashscreenRoot = document.querySelector('#splash')
|
||||
splashscreenRoot.addEventListener('transitionend', () => {
|
||||
splashscreenRoot.remove()
|
||||
})
|
||||
splashscreenRoot.classList.add('hidden')
|
||||
document.querySelector('#app').classList.remove('hidden')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue