TeaWeb/js/main.js

16 lines
680 B
JavaScript
Raw Normal View History

2018-02-27 16:20:49 +00:00
/// <reference path="chat.ts" />
/// <reference path="client.ts" />
/// <reference path="utils/modal.ts" />
2018-03-07 18:06:52 +00:00
/// <reference path="ui/modal/ModalConnect.ts" />
2018-02-27 16:20:49 +00:00
let globalClient = new TSClient();
let chat = new ChatBox($("#chat"));
globalClient.setup();
2018-03-07 18:06:52 +00:00
//globalClient.startConnection("localhost:19974"); //TODO remove only for testing
//Modals.spawnConnectModal();
2018-03-10 08:03:29 +00:00
//Modals.spawnSettingsModal();
window.addEventListener("beforeunload", function (event) {
if (globalClient.serverConnection && globalClient.serverConnection.connected)
event.returnValue = "Are you really sure?<br>You're still connected!";
//event.preventDefault();
});
2018-02-27 16:20:49 +00:00
//# sourceMappingURL=main.js.map