Add ability to disable peertube link in embed

pull/2926/head
Chocobozzz 2020-07-31 17:03:57 +02:00
parent 7c87bce471
commit 08d9ba0f85
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 1 deletions

View File

@ -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,