aboutsummaryrefslogtreecommitdiff
path: root/src/client/Server.ts
diff options
context:
space:
mode:
authorBrandon <brandon_li@brown.edu>2019-03-11 18:27:22 -0400
committerBrandon <brandon_li@brown.edu>2019-03-11 18:27:22 -0400
commitc1d2a28123f4c9290fe8346730976687671f4042 (patch)
tree7d6ad3ca7c8216947ec7563963a55a5b9c39d848 /src/client/Server.ts
parentc9ae6d447c151ffbc6691a095802489038d004c1 (diff)
parent618e66a5a070f1aac9224bd3f44b76a5ac314bfa (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into kvp
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()