/// /// /// /// let globalClient = new TSClient(); let chat = new ChatBox($("#chat")); globalClient.setup(); //globalClient.startConnection("localhost:19974"); //TODO remove only for testing let modal = 0; $("#test").click(function () { console.log("Executing test function"); }); //Modals.spawnConnectModal(); //Modals.spawnSettingsModal(); /* createErrorModal("Could not connect to remote host",() => { let tag = $.spawn("div"); tag.append("A fatal error occurred while connecting to host:port
"); tag.append("Please reload the page and try again!
"); return tag; }, { footer: "" }).open(); */ window.addEventListener("beforeunload", function (event) { if (globalClient.serverConnection && globalClient.serverConnection.connected) event.returnValue = "Are you really sure?
You're still connected!"; //event.preventDefault(); }); //# sourceMappingURL=main.js.map