summaryrefslogtreecommitdiffstats
path: root/webapp/stores/browser_store.jsx
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-05-16 19:09:37 -0400
committerCorey Hulen <corey@hulen.com>2016-05-16 16:09:37 -0700
commit34780f3aea78bbf5dd35230ba7ad4a67618b42a0 (patch)
tree760e5130264177763081760865cf109323e393a2 /webapp/stores/browser_store.jsx
parent2ccf5bbaa2421c03cf932431fc0247b43b48d774 (diff)
downloadchat-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/browser_store.jsx')
-rw-r--r--webapp/stores/browser_store.jsx5
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() {