aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-03-07 23:54:12 -0500
committeryipstanley <stanley_yip@brown.edu>2019-03-07 23:54:12 -0500
commit889407852167dece0160127817e390336697e3a6 (patch)
tree303cc06880b6c5e0cc644f559c9548f95790423e /src
parent9e33d53b7dfe1a7e8bd515a0a985c9b37057aca1 (diff)
parent9940924f361f1b9d65d7cc0ad1e4f6f1f4d5d318 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into inking
Diffstat (limited to 'src')
-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()