mirror of
https://github.com/ragestudio/vessel.git
synced 2025-06-09 02:24:17 +00:00
fix invisible rendering of splash
This commit is contained in:
parent
e1d44d19e6
commit
11d508b6b9
@ -5,15 +5,22 @@ export default class SplashScreenManager {
|
|||||||
|
|
||||||
attach() {
|
attach() {
|
||||||
const container = document.getElementById(this.containerId)
|
const container = document.getElementById(this.containerId)
|
||||||
|
|
||||||
if (container && !container.classList.contains("app_splash_visible")) {
|
if (container && !container.classList.contains("app_splash_visible")) {
|
||||||
container.classList.add("app_splash_visible")
|
container.classList.add("app_splash_visible")
|
||||||
|
container.style.display = "block"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
detach() {
|
detach() {
|
||||||
const container = document.getElementById(this.containerId)
|
const container = document.getElementById(this.containerId)
|
||||||
|
|
||||||
if (container && container.classList.contains("app_splash_visible")) {
|
if (container && container.classList.contains("app_splash_visible")) {
|
||||||
container.classList.remove("app_splash_visible")
|
container.classList.remove("app_splash_visible")
|
||||||
|
|
||||||
|
setTimeout(() => {
|
||||||
|
container.style.display = "none"
|
||||||
|
}, 300)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user