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 удалений

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

@@ -281,6 +281,10 @@ export const StatTypes = keyMirror({
MONTHLY_ACTIVE_USERS: null
});
export const ErrorPageTypes = {
LOCAL_STORAGE: 'local_storage'
};
export const Constants = {
Preferences,
SocketEvents,
@@ -290,6 +294,8 @@ export const Constants = {
UserSearchOptions,
TutorialSteps,
PostTypes,
ErrorPageTypes,
IGNORE_POST_TYPES: [PostTypes.JOIN_LEAVE, PostTypes.JOIN_CHANNEL, PostTypes.LEAVE_CHANNEL, PostTypes.REMOVE_FROM_CHANNEL, PostTypes.ADD_TO_CHANNEL, PostTypes.ADD_REMOVE],
PayloadSources: keyMirror({

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

@@ -163,6 +163,10 @@ class MattermostMarkdownRenderer extends marked.Renderer {
link(href, title, text) {
let outHref = href;
if (this.formattingOptions.linkFilter && !this.formattingOptions.linkFilter(outHref)) {
return text;
}
try {
let unescaped = unescape(href);
try {