LoadingScene: use proper class syntax

This commit is contained in:
Max Berger
2026-03-15 00:32:47 +01:00
parent e4d9bd7fb8
commit 01ad65efd2
2 changed files with 12 additions and 9 deletions

View File

@@ -20,8 +20,11 @@
*/
import { LoginScene } from "./scenes/LoginScene.js";
import { LoadingScene } from "./scenes/LoadingScene.js";
import { push_scene } from "./scenes/scene_manager.js";
// Hide startup loading message
document.getElementById("loadingscene").classList.add("hidden");
// This works because the LoadingScene is the one that is already active in index.html,
// and all other scenes are hidden.
new LoadingScene().hide();
push_scene(new LoginScene());