remove splash when it's done

This commit is contained in:
Henry Jameson 2024-09-18 21:33:20 +03:00
parent 711eb24504
commit e004c4e087

View file

@ -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')
}
}