summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-08-24 17:04:54 -0700
committer=Corey Hulen <corey@hulen.com>2015-08-24 17:04:54 -0700
commitec1fbeb1a5bf27c2411428cd33bd16dfe73b50a3 (patch)
tree47117e6a19b4996c8fb4bb2ec2beaba3dc0af2d5
parent7472d9b29bfc1601b73d7101a0589c0e9d313323 (diff)
downloadchat-ec1fbeb1a5bf27c2411428cd33bd16dfe73b50a3.tar.gz
chat-ec1fbeb1a5bf27c2411428cd33bd16dfe73b50a3.tar.bz2
chat-ec1fbeb1a5bf27c2411428cd33bd16dfe73b50a3.zip
Fixes mm-2021 removes hard coded port
-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);