From 0ca7420ad952c0332ab36e37596b0fa53e710325 Mon Sep 17 00:00:00 2001 From: RblSb Date: Fri, 6 Mar 2020 06:32:01 +0300 Subject: Move server port to config --- src/client/Main.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/client/Main.hx') diff --git a/src/client/Main.hx b/src/client/Main.hx index 8ec1704..1552d38 100644 --- a/src/client/Main.hx +++ b/src/client/Main.hx @@ -2,11 +2,11 @@ package client; import haxe.crypto.Sha256; import haxe.Timer; +import haxe.Json; import js.html.MouseEvent; import js.html.KeyboardEvent; import js.html.Event; import js.html.Element; -import haxe.Json; import js.html.InputElement; import js.html.WebSocket; import js.Browser; @@ -38,7 +38,7 @@ class Main { static function main():Void new Main(); - public function new(?host:String, ?port:String) { + function new(?host:String, ?port:String) { player = new Player(this); if (host == null) host = Browser.location.hostname; if (host == "") host = "localhost"; -- cgit v1.2.3