diff options
| author | Henry Jameson <me@hjkos.com> | 2024-09-18 21:33:20 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2024-09-18 21:33:20 +0300 |
| commit | e004c4e087d4cf977a3fb713f5441c92028b83b6 (patch) | |
| tree | 760fe12b0735dd59d9aad1ec973d02ff9542f242 | |
| parent | 711eb24504d231e2276640b614849a3ae6703c14 (diff) | |
remove splash when it's done
| -rw-r--r-- | src/App.js | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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') } } |
