X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fshared%2Fshared-main%2Fvideo%2Fembed.component.ts;h=43e3501978c18576c5bb4f3614763a334bec0be2;hb=d12b40fb96d56786a96c06a621f3d8e0a0d24f4a;hp=1230008346233aa5b610fc6b0cefbade7a33365f;hpb=57d6503286b114fee61b5e4725825e2490dcac29;p=github%2FChocobozzz%2FPeerTube.git diff --git a/client/src/app/shared/shared-main/video/embed.component.ts b/client/src/app/shared/shared-main/video/embed.component.ts index 123000834..43e350197 100644 --- a/client/src/app/shared/shared-main/video/embed.component.ts +++ b/client/src/app/shared/shared-main/video/embed.component.ts @@ -20,15 +20,15 @@ export class EmbedComponent implements OnInit { } ngOnInit () { - const html = buildVideoOrPlaylistEmbed( - decorateVideoLink({ + const html = buildVideoOrPlaylistEmbed({ + embedUrl: decorateVideoLink({ url: buildVideoEmbedLink(this.video, environment.originServerUrl), title: false, warningTitle: false }), - this.video.name - ) + embedTitle: this.video.name + }) this.embedHTML = this.sanitizer.bypassSecurityTrustHtml(html) }