diff options
author | Chocobozzz <me@florianbigard.com> | 2020-07-31 17:03:57 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-07-31 17:03:57 +0200 |
commit | 08d9ba0f855bcd254151c1000a2a4008a1816ad6 (patch) | |
tree | 0fe601eefb8c78be8f6a53997dcfe7cb2db42091 /client/src/standalone/videos/embed.ts | |
parent | 7c87bce4715ca291c8e449d9de3d92c69725d45c (diff) | |
download | PeerTube-08d9ba0f855bcd254151c1000a2a4008a1816ad6.tar.gz PeerTube-08d9ba0f855bcd254151c1000a2a4008a1816ad6.tar.zst PeerTube-08d9ba0f855bcd254151c1000a2a4008a1816ad6.zip |
Add ability to disable peertube link in embed
Diffstat (limited to 'client/src/standalone/videos/embed.ts')
-rw-r--r-- | client/src/standalone/videos/embed.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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 { | |||
35 | 35 | ||
36 | title: boolean | 36 | title: boolean |
37 | warningTitle: boolean | 37 | warningTitle: boolean |
38 | peertubeLink: boolean | ||
38 | bigPlayBackgroundColor: string | 39 | bigPlayBackgroundColor: string |
39 | foregroundColor: string | 40 | foregroundColor: string |
40 | 41 | ||
@@ -134,6 +135,7 @@ export class PeerTubeEmbed { | |||
134 | this.title = this.getParamToggle(params, 'title', true) | 135 | this.title = this.getParamToggle(params, 'title', true) |
135 | this.enableApi = this.getParamToggle(params, 'api', this.enableApi) | 136 | this.enableApi = this.getParamToggle(params, 'api', this.enableApi) |
136 | this.warningTitle = this.getParamToggle(params, 'warningTitle', true) | 137 | this.warningTitle = this.getParamToggle(params, 'warningTitle', true) |
138 | this.peertubeLink = this.getParamToggle(params, 'peertubeLink', true) | ||
137 | 139 | ||
138 | this.scope = this.getParamString(params, 'scope', this.scope) | 140 | this.scope = this.getParamString(params, 'scope', this.scope) |
139 | this.subtitle = this.getParamString(params, 'subtitle') | 141 | this.subtitle = this.getParamString(params, 'subtitle') |
@@ -209,7 +211,7 @@ export class PeerTubeEmbed { | |||
209 | 211 | ||
210 | videoDuration: videoInfo.duration, | 212 | videoDuration: videoInfo.duration, |
211 | enableHotkeys: true, | 213 | enableHotkeys: true, |
212 | peertubeLink: true, | 214 | peertubeLink: this.peertubeLink, |
213 | poster: window.location.origin + videoInfo.previewPath, | 215 | poster: window.location.origin + videoInfo.previewPath, |
214 | theaterButton: false, | 216 | theaterButton: false, |
215 | 217 | ||