PLT-5702 Added special error page for private browsing error message (#5985)

Этот коммит содержится в:
Harrison Healey
2017-04-04 19:21:31 -04:00
коммит произвёл Joram Wilander
родитель a0c91ef4af
Коммит f7a4c75a21
5 изменённых файлов: 105 добавлений и 28 удалений

Просмотреть файл

@@ -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;