aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Main.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-03-06 06:32:01 +0300
committerRblSb <msrblsb@gmail.com>2020-03-06 06:32:01 +0300
commit0ca7420ad952c0332ab36e37596b0fa53e710325 (patch)
tree7e64bbd60ff781df2d5c429f900ec18b75e44703 /src/client/Main.hx
parent39767a4b71de751c2b4ee672c3985f52a62e039b (diff)
Move server port to config
Diffstat (limited to 'src/client/Main.hx')
-rw-r--r--src/client/Main.hx4
1 files changed, 2 insertions, 2 deletions
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";
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage