PLT-5702 Added special error page for private browsing error message (#5985)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
a0c91ef4af
Коммит
f7a4c75a21
@@ -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;
|
||||
|
||||
Ссылка в новой задаче
Block a user