diff options
author | Harrison Healey <harrisonmhealey@gmail.com> | 2017-04-04 19:21:31 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2017-04-04 19:21:31 -0400 |
commit | f7a4c75a214fb239989618e9583d78f98256e66c (patch) | |
tree | 3d645fc2a62c96985c069a32e93e3ab9dd964616 /webapp/stores/browser_store.jsx | |
parent | a0c91ef4afceffb100c75bd67585021a13abc24e (diff) | |
download | chat-f7a4c75a214fb239989618e9583d78f98256e66c.tar.gz chat-f7a4c75a214fb239989618e9583d78f98256e66c.tar.bz2 chat-f7a4c75a214fb239989618e9583d78f98256e66c.zip |
PLT-5702 Added special error page for private browsing error message (#5985)
Diffstat (limited to 'webapp/stores/browser_store.jsx')
-rw-r--r-- | webapp/stores/browser_store.jsx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/webapp/stores/browser_store.jsx b/webapp/stores/browser_store.jsx index 2da6b896f..123a7d8b9 100644 --- a/webapp/stores/browser_store.jsx +++ b/webapp/stores/browser_store.jsx @@ -3,12 +3,7 @@ import {browserHistory} from 'react-router/es6'; import * as Utils from 'utils/utils.jsx'; -import Constants from 'utils/constants.jsx'; - -const notSupportedParams = { - title: Utils.localizeMessage('error.not_supported.title', 'Browser not supported'), - message: Utils.localizeMessage('error.not_supported.message', 'Private browsing is not supported') -}; +import {Constants, ErrorPageTypes} from 'utils/constants.jsx'; function getPrefix() { if (global.window.mm_current_user_id) { @@ -200,7 +195,7 @@ class BrowserStoreClass { sessionStorage.removeItem('__testSession__'); } catch (e) { // Session storage not usable, website is unusable - browserHistory.push(window.location.origin + '/error?title=' + notSupportedParams.title + '&message=' + notSupportedParams.message); + browserHistory.push('/error?type=' + ErrorPageTypes.LOCAL_STORAGE); } this.hasCheckedLocalStorage = true; |