webclient/js/Main.js

13 lines
273 B
JavaScript

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