From 0afa28de0953ed528486a7d7ad6000f344624710 Mon Sep 17 00:00:00 2001
From: Harrison Healey <harrisonmhealey@gmail.com>
Date: Tue, 9 Aug 2016 09:53:22 -0400
Subject: Changed autodetection of SiteURL (#3764)

* Changed autoconfiguration of SiteURL to be done on every request

* Added SiteURL to system console
---
 webapp/actions/websocket_actions.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'webapp/actions/websocket_actions.jsx')

diff --git a/webapp/actions/websocket_actions.jsx b/webapp/actions/websocket_actions.jsx
index e93b2d25b..9150e4111 100644
--- a/webapp/actions/websocket_actions.jsx
+++ b/webapp/actions/websocket_actions.jsx
@@ -32,7 +32,7 @@ const MAX_WEBSOCKET_FAILS = 7;
 
 export function initialize() {
     if (window.WebSocket) {
-        let connUrl = window.mm_config.SiteURL;
+        let connUrl = Utils.getSiteURL();
 
         // replace the protocol with a websocket one
         if (connUrl.startsWith('https:')) {
-- 
cgit v1.2.3-1-g7c22

