webclient/js/Main.js

14 lines
338 B
JavaScript

import * as Login from GUI.Screen.Login;
import * as Hall from GUI.Screen.Hall;
import * as Game from GUI.Screen.Game;
import * as Settings from GUI.Screen.Settings;
var gamePath = window.location.pathname.match(/\/game\/([0-9A-Fa-f]+)/);
if(gamePath) {
Game.init(gamePath[1])
} else {
Login.init();
Hall.init();
Settings.init();
}