aboutsummaryrefslogtreecommitdiff
path: root/src/client/Server.ts
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-03-08 00:12:37 -0500
committeryipstanley <stanley_yip@brown.edu>2019-03-08 00:12:37 -0500
commita25c7e5e436d772afe4b28300fc6999a78f7bba6 (patch)
tree6464cd134b322bb3f56900112064f3a2c8b26a5b /src/client/Server.ts
parent0251cfba6ba20501d2598a890b7d67be6fc07379 (diff)
parent5a1da11a5767899aac2f1bfac6d33e0ee5d47c9e (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into improveText
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()