aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-11-17 14:49:36 +0100
committerChocobozzz <me@florianbigard.com>2020-11-17 14:52:57 +0100
commit47dc5db9c38d72666da5733a7a026976ec7dac04 (patch)
treec14de369e6a3faa476ad66a8e9dc6a91f4ab5892
parent45c70083ddb7f57c52e2c587d6e3ab581c657716 (diff)
downloadPeerTube-47dc5db9c38d72666da5733a7a026976ec7dac04.tar.gz
PeerTube-47dc5db9c38d72666da5733a7a026976ec7dac04.tar.zst
PeerTube-47dc5db9c38d72666da5733a7a026976ec7dac04.zip
Fix client build
-rw-r--r--client/src/app/shared/shared-main/misc/help.component.ts6
-rw-r--r--shared/core-utils/renderer/html.ts2
2 files changed, 4 insertions, 4 deletions
diff --git a/client/src/app/shared/shared-main/misc/help.component.ts b/client/src/app/shared/shared-main/misc/help.component.ts
index 9647e05bd..76e255d99 100644
--- a/client/src/app/shared/shared-main/misc/help.component.ts
+++ b/client/src/app/shared/shared-main/misc/help.component.ts
@@ -1,6 +1,6 @@
1import { AfterContentInit, Component, ContentChildren, Input, OnChanges, OnInit, QueryList, TemplateRef } from '@angular/core' 1import { AfterContentInit, Component, ContentChildren, Input, OnChanges, OnInit, QueryList, TemplateRef } from '@angular/core'
2import { MarkdownService } from '@app/core'
3import { GlobalIconName } from '@app/shared/shared-icons' 2import { GlobalIconName } from '@app/shared/shared-icons'
3import { ENHANCED_RULES, TEXT_RULES } from '@shared/core-utils/renderer/markdown'
4import { PeerTubeTemplateDirective } from '../angular' 4import { PeerTubeTemplateDirective } from '../angular'
5 5
6@Component({ 6@Component({
@@ -60,12 +60,12 @@ export class HelpComponent implements OnInit, OnChanges, AfterContentInit {
60 60
61 private init () { 61 private init () {
62 if (this.helpType === 'markdownText') { 62 if (this.helpType === 'markdownText') {
63 this.mainHtml = this.formatMarkdownSupport(MarkdownService.TEXT_RULES) 63 this.mainHtml = this.formatMarkdownSupport(TEXT_RULES)
64 return 64 return
65 } 65 }
66 66
67 if (this.helpType === 'markdownEnhanced') { 67 if (this.helpType === 'markdownEnhanced') {
68 this.mainHtml = this.formatMarkdownSupport(MarkdownService.ENHANCED_RULES) 68 this.mainHtml = this.formatMarkdownSupport(ENHANCED_RULES)
69 return 69 return
70 } 70 }
71 } 71 }
diff --git a/shared/core-utils/renderer/html.ts b/shared/core-utils/renderer/html.ts
index 37ae5147c..1220848a0 100644
--- a/shared/core-utils/renderer/html.ts
+++ b/shared/core-utils/renderer/html.ts
@@ -5,7 +5,7 @@ export const SANITIZE_OPTIONS = {
5 a: [ 'href', 'class', 'target', 'rel' ] 5 a: [ 'href', 'class', 'target', 'rel' ]
6 }, 6 },
7 transformTags: { 7 transformTags: {
8 a: (tagName, attribs) => { 8 a: (tagName: string, attribs: any) => {
9 let rel = 'noopener noreferrer' 9 let rel = 'noopener noreferrer'
10 if (attribs.rel === 'me') rel += ' me' 10 if (attribs.rel === 'me') rel += ' me'
11 11