aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2024-09-18 21:33:20 +0300
committerHenry Jameson <me@hjkos.com>2024-09-18 21:33:20 +0300
commite004c4e087d4cf977a3fb713f5441c92028b83b6 (patch)
tree760fe12b0735dd59d9aad1ec973d02ff9542f242 /src
parent711eb24504d231e2276640b614849a3ae6703c14 (diff)
remove splash when it's done
Diffstat (limited to 'src')
-rw-r--r--src/App.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/App.js b/src/App.js
index d2dd35c7..e87108dd 100644
--- a/src/App.js
+++ b/src/App.js
@@ -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')
}
}