summaryrefslogtreecommitdiffstats
path: root/webapp/stores
diff options
context:
space:
mode:
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;