summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2015-10-23 08:55:45 -0400
committerJoramWilander <jwawilander@gmail.com>2015-10-23 08:55:45 -0400
commitcc25355af79fcfeea2b59e97468ef812e1007aa8 (patch)
tree8a639eb5892cca89969790df5fab9c201205fb0c /web
parent02a6f6b2cd4c0a6bf32b23961557c385039ae2f2 (diff)
downloadchat-cc25355af79fcfeea2b59e97468ef812e1007aa8.tar.gz
chat-cc25355af79fcfeea2b59e97468ef812e1007aa8.tar.bz2
chat-cc25355af79fcfeea2b59e97468ef812e1007aa8.zip
Fix websocket not connecting when session index is 0
Diffstat (limited to 'web')
-rw-r--r--web/react/stores/socket_store.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/stores/socket_store.jsx b/web/react/stores/socket_store.jsx
index 33cdc79fb..8c3489001 100644
--- a/web/react/stores/socket_store.jsx
+++ b/web/react/stores/socket_store.jsx
@@ -38,7 +38,7 @@ class SocketStoreClass extends EventEmitter {
return;
}
- if (!global.window.mm_session_token_index) {
+ if (!global.window.hasOwnProperty('mm_session_token_index')) {
return;
}