summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/react/stores/socket_store.jsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/web/react/stores/socket_store.jsx b/web/react/stores/socket_store.jsx
index d0fc30202..e43a8f2be 100644
--- a/web/react/stores/socket_store.jsx
+++ b/web/react/stores/socket_store.jsx
@@ -25,11 +25,10 @@ var SocketStore = assign({}, EventEmitter.prototype, {
if (window.WebSocket && !conn) {
var protocol = 'ws://';
- var port = '';
if (window.location.protocol === 'https:') {
protocol = 'wss://';
}
- var connUrl = protocol + location.host + port + '/api/v1/websocket';
+ var connUrl = protocol + location.host + '/api/v1/websocket';
console.log('connecting to ' + connUrl);
conn = new WebSocket(connUrl);