diff options
author | Chocobozzz <me@florianbigard.com> | 2020-11-17 14:49:36 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-11-17 14:52:57 +0100 |
commit | 47dc5db9c38d72666da5733a7a026976ec7dac04 (patch) | |
tree | c14de369e6a3faa476ad66a8e9dc6a91f4ab5892 /shared | |
parent | 45c70083ddb7f57c52e2c587d6e3ab581c657716 (diff) | |
download | PeerTube-47dc5db9c38d72666da5733a7a026976ec7dac04.tar.gz PeerTube-47dc5db9c38d72666da5733a7a026976ec7dac04.tar.zst PeerTube-47dc5db9c38d72666da5733a7a026976ec7dac04.zip |
Fix client build
Diffstat (limited to 'shared')
-rw-r--r-- | shared/core-utils/renderer/html.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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 | ||