diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-05-16 19:09:37 -0400 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2016-05-16 16:09:37 -0700 |
commit | 34780f3aea78bbf5dd35230ba7ad4a67618b42a0 (patch) | |
tree | 760e5130264177763081760865cf109323e393a2 /webapp/stores | |
parent | 2ccf5bbaa2421c03cf932431fc0247b43b48d774 (diff) | |
download | chat-34780f3aea78bbf5dd35230ba7ad4a67618b42a0.tar.gz chat-34780f3aea78bbf5dd35230ba7ad4a67618b42a0.tar.bz2 chat-34780f3aea78bbf5dd35230ba7ad4a67618b42a0.zip |
Refresh login page if server version of client doesn't match browser version of client (#3004)
Diffstat (limited to 'webapp/stores')
-rw-r--r-- | webapp/stores/browser_store.jsx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/webapp/stores/browser_store.jsx b/webapp/stores/browser_store.jsx index 2dae78f46..11fe50928 100644 --- a/webapp/stores/browser_store.jsx +++ b/webapp/stores/browser_store.jsx @@ -158,6 +158,7 @@ class BrowserStoreClass { clear() { // don't clear the logout id so IE11 can tell which tab sent a logout request const logoutId = sessionStorage.getItem('__logout__'); + const serverVersion = this.getLastServerVersion(); sessionStorage.clear(); localStorage.clear(); @@ -165,6 +166,10 @@ class BrowserStoreClass { if (logoutId) { sessionStorage.setItem('__logout__', logoutId); } + + if (serverVersion) { + this.setLastServerVersion(serverVersion); + } } clearAll() { |