diff options
author | JoramWilander <jwawilander@gmail.com> | 2015-10-23 08:55:45 -0400 |
---|---|---|
committer | JoramWilander <jwawilander@gmail.com> | 2015-10-23 08:55:45 -0400 |
commit | cc25355af79fcfeea2b59e97468ef812e1007aa8 (patch) | |
tree | 8a639eb5892cca89969790df5fab9c201205fb0c /web/react/stores | |
parent | 02a6f6b2cd4c0a6bf32b23961557c385039ae2f2 (diff) | |
download | chat-cc25355af79fcfeea2b59e97468ef812e1007aa8.tar.gz chat-cc25355af79fcfeea2b59e97468ef812e1007aa8.tar.bz2 chat-cc25355af79fcfeea2b59e97468ef812e1007aa8.zip |
Fix websocket not connecting when session index is 0
Diffstat (limited to 'web/react/stores')
-rw-r--r-- | web/react/stores/socket_store.jsx | 2 |
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; } |