diff options
author | Monika Hedman <monika_hedman@brown.edu> | 2019-03-09 19:29:59 -0500 |
---|---|---|
committer | Monika Hedman <monika_hedman@brown.edu> | 2019-03-09 19:29:59 -0500 |
commit | 2e0728eee32c491a5daa309684d727a2a560cbd4 (patch) | |
tree | 8d866759fab7a2042cf47c8db0b6836976755ca2 /src/client/Server.ts | |
parent | 1183f65cea62078cfa1df615da20b72f5b60433e (diff) | |
parent | 74f216770159ba405c0063f20a62769e48c89691 (diff) |
merged with master
Diffstat (limited to 'src/client/Server.ts')
-rw-r--r-- | src/client/Server.ts | 2 |
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() |