webclient/js/Main.js

15 lines
338 B
JavaScript
Raw Normal View History

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();
}