diff options
| author | yipstanley <stanley_yip@brown.edu> | 2019-03-07 23:54:12 -0500 |
|---|---|---|
| committer | yipstanley <stanley_yip@brown.edu> | 2019-03-07 23:54:12 -0500 |
| commit | 889407852167dece0160127817e390336697e3a6 (patch) | |
| tree | 303cc06880b6c5e0cc644f559c9548f95790423e /src | |
| parent | 9e33d53b7dfe1a7e8bd515a0a985c9b37057aca1 (diff) | |
| parent | 9940924f361f1b9d65d7cc0ad1e4f6f1f4d5d318 (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into inking
Diffstat (limited to 'src')
| -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() |
