From 585ac1563dcc89e1fac4526497c16c0bc7b9858e Mon Sep 17 00:00:00 2001 From: Martin Ashby Date: Tue, 3 Jul 2018 12:40:06 +0100 Subject: checked in dev mode oops --- src/App.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App.js b/src/App.js index 37fd7af..bfff3a6 100644 --- a/src/App.js +++ b/src/App.js @@ -173,10 +173,10 @@ class App extends Component { _connectWebsocket() { let webSocketProto = window.location.protocol === "https:" ? "wss:" : "ws:" var host = window.location.host - if (true) { - console.log("Dev mode overriding port to 3001") - host = window.location.hostname + ":3001" - } + // if (true) { + // console.log("Dev mode overriding port to 3001") + // host = window.location.hostname + ":3001" + // } this._websocket = new WebSocket(`${webSocketProto}//${host}/ws`) this._websocket.onmessage = this._onMessage this._websocket.onopen = this._onOpen -- cgit v1.2.3-ZIG