Changed autodetection of SiteURL (#3764)

* Changed autoconfiguration of SiteURL to be done on every request

* Added SiteURL to system console
Этот коммит содержится в:
Harrison Healey
2016-08-09 09:53:22 -04:00
коммит произвёл enahum
родитель 09d98b486e
Коммит 0afa28de09
11 изменённых файлов: 56 добавлений и 32 удалений

Просмотреть файл

@@ -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:')) {