From 08d9ba0f855bcd254151c1000a2a4008a1816ad6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 31 Jul 2020 17:03:57 +0200 Subject: Add ability to disable peertube link in embed --- client/src/standalone/videos/embed.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'client') diff --git a/client/src/standalone/videos/embed.ts b/client/src/standalone/videos/embed.ts index 86a91643a..468b1889f 100644 --- a/client/src/standalone/videos/embed.ts +++ b/client/src/standalone/videos/embed.ts @@ -35,6 +35,7 @@ export class PeerTubeEmbed { title: boolean warningTitle: boolean + peertubeLink: boolean bigPlayBackgroundColor: string foregroundColor: string @@ -134,6 +135,7 @@ export class PeerTubeEmbed { this.title = this.getParamToggle(params, 'title', true) this.enableApi = this.getParamToggle(params, 'api', this.enableApi) this.warningTitle = this.getParamToggle(params, 'warningTitle', true) + this.peertubeLink = this.getParamToggle(params, 'peertubeLink', true) this.scope = this.getParamString(params, 'scope', this.scope) this.subtitle = this.getParamString(params, 'subtitle') @@ -209,7 +211,7 @@ export class PeerTubeEmbed { videoDuration: videoInfo.duration, enableHotkeys: true, - peertubeLink: true, + peertubeLink: this.peertubeLink, poster: window.location.origin + videoInfo.previewPath, theaterButton: false, -- cgit v1.2.3