summaryrefslogtreecommitdiffstats
path: root/web/react/stores/browser_store.jsx
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-11-05 12:14:27 -0800
committer=Corey Hulen <corey@hulen.com>2015-11-05 12:14:27 -0800
commit17cd95ae054b68a0f6816c6038f67a8901ac94d5 (patch)
tree0b8a8b0235eb9c378dd26d7212ede023635c98fa /web/react/stores/browser_store.jsx
parent5dbefdecfe611f9496f9105a62e8f46ccb927add (diff)
downloadchat-17cd95ae054b68a0f6816c6038f67a8901ac94d5.tar.gz
chat-17cd95ae054b68a0f6816c6038f67a8901ac94d5.tar.bz2
chat-17cd95ae054b68a0f6816c6038f67a8901ac94d5.zip
Fixing issue with safari private mode
Diffstat (limited to 'web/react/stores/browser_store.jsx')
-rw-r--r--web/react/stores/browser_store.jsx6
1 files changed, 5 insertions, 1 deletions
diff --git a/web/react/stores/browser_store.jsx b/web/react/stores/browser_store.jsx
index b88ca43cd..8e86ce32f 100644
--- a/web/react/stores/browser_store.jsx
+++ b/web/react/stores/browser_store.jsx
@@ -30,7 +30,11 @@ class BrowserStoreClass {
var currentVersion = sessionStorage.getItem('storage_version');
if (currentVersion !== global.window.mm_config.Version) {
sessionStorage.clear();
- sessionStorage.setItem('storage_version', global.window.mm_config.Version);
+ try {
+ sessionStorage.setItem('storage_version', global.window.mm_config.Version);
+ } catch (e) {
+ // Do nothing
+ }
}
}