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