fix invisible rendering of splash

This commit is contained in:
SrGooglo 2025-06-04 15:30:34 +00:00
parent e1d44d19e6
commit 11d508b6b9

View File

@ -5,15 +5,22 @@ export default class SplashScreenManager {
attach() {
const container = document.getElementById(this.containerId)
if (container && !container.classList.contains("app_splash_visible")) {
container.classList.add("app_splash_visible")
container.style.display = "block"
}
}
detach() {
const container = document.getElementById(this.containerId)
if (container && container.classList.contains("app_splash_visible")) {
container.classList.remove("app_splash_visible")
setTimeout(() => {
container.style.display = "none"
}, 300)
}
}
}