aboutsummaryrefslogtreecommitdiff
path: root/src/client/Server.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-03-08 09:21:07 -0500
committerbob <bcz@cs.brown.edu>2019-03-08 09:21:07 -0500
commit58a189d13061cdf4b7561c30bad9e1230a57eeff (patch)
treeb3c436704fa9e44f0cde010d4c969fc3b59e382e /src/client/Server.ts
parent22d7f22a60a17373a6e453e09cc616f651c11a9e (diff)
parentc0d9d7fbac952329d97ddc5c6f96fb02d9ab42f3 (diff)
Merge branch 'master' into PDFNode
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()