1
0
Fork 0
mirror of https://github.com/Chocobozzz/PeerTube.git synced 2025-10-05 19:42:24 +02:00

Fix client build

This commit is contained in:
Chocobozzz 2020-11-17 14:49:36 +01:00
parent 45c70083dd
commit 47dc5db9c3
No known key found for this signature in database
GPG key ID: 583A612D890159BE
2 changed files with 4 additions and 4 deletions

View file

@ -5,7 +5,7 @@ export const SANITIZE_OPTIONS = {
a: [ 'href', 'class', 'target', 'rel' ]
},
transformTags: {
a: (tagName, attribs) => {
a: (tagName: string, attribs: any) => {
let rel = 'noopener noreferrer'
if (attribs.rel === 'me') rel += ' me'