summaryrefslogtreecommitdiffstats
path: root/webapp/stores
diff options
context:
space:
mode:
authorHarrison Healey <harrisonmhealey@gmail.com>2017-04-04 19:21:31 -0400
committerJoram Wilander <jwawilander@gmail.com>2017-04-04 19:21:31 -0400
commitf7a4c75a214fb239989618e9583d78f98256e66c (patch)
tree3d645fc2a62c96985c069a32e93e3ab9dd964616 /webapp/stores
parenta0c91ef4afceffb100c75bd67585021a13abc24e (diff)
downloadchat-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')
-rw-r--r--webapp/stores/browser_store.jsx9
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;