aboutsummaryrefslogtreecommitdiff
path: root/src/client/Server.ts
diff options
context:
space:
mode:
authorEleanor Eng <eleanor_eng@brown.edu>2019-03-12 17:44:11 -0400
committerEleanor Eng <eleanor_eng@brown.edu>2019-03-12 17:44:11 -0400
commit96dc0349945974a5f1c0b1329ec035dcb9dfde0e (patch)
tree2a8bae2138aa0772dd34701443d61f82855662be /src/client/Server.ts
parent1f038048612e01d0ada6deb9ff2a056cb8d13702 (diff)
parent618e66a5a070f1aac9224bd3f44b76a5ac314bfa (diff)
working submenu; dimensions now relative to vw, vh
Diffstat (limited to 'src/client/Server.ts')
-rw-r--r--src/client/Server.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/Server.ts b/src/client/Server.ts
index 2d162b93a..f0cf0bb9b 100644
--- a/src/client/Server.ts
+++ b/src/client/Server.ts
@@ -9,7 +9,7 @@ import { MessageStore, Types } from "./../server/Message";
export class Server {
public static ClientFieldsCached: ObservableMap<FieldId, Field | FIELD_WAITING> = new ObservableMap();
- static Socket: SocketIOClient.Socket = OpenSocket("http://localhost:1234");
+ static Socket: SocketIOClient.Socket = OpenSocket(`${window.location.protocol}//${window.location.hostname}:1234`);
static GUID: string = Utils.GenerateGuid()