aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/assets/player/utils.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-08-07 11:42:53 +0200
committerChocobozzz <me@florianbigard.com>2020-08-07 11:42:53 +0200
commit189ab8deb3623934e8cf53b0d36ff216f8494313 (patch)
treed5cdbd8e700100cefd6b3846a2bf8ac91627113c /client/src/assets/player/utils.ts
parent193b9ba7c0f7bfe7baa4e2214b0705bd2230c8ad (diff)
downloadPeerTube-189ab8deb3623934e8cf53b0d36ff216f8494313.tar.gz
PeerTube-189ab8deb3623934e8cf53b0d36ff216f8494313.tar.zst
PeerTube-189ab8deb3623934e8cf53b0d36ff216f8494313.zip
Add ability to disable peertube button link in embed
Diffstat (limited to 'client/src/assets/player/utils.ts')
-rw-r--r--client/src/assets/player/utils.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/assets/player/utils.ts b/client/src/assets/player/utils.ts
index 20d97c7e2..115fdfa49 100644
--- a/client/src/assets/player/utils.ts
+++ b/client/src/assets/player/utils.ts
@@ -58,6 +58,7 @@ function buildVideoLink (options: {
58 title?: boolean, 58 title?: boolean,
59 warningTitle?: boolean, 59 warningTitle?: boolean,
60 controls?: boolean 60 controls?: boolean
61 peertubeLink?: boolean
61} = {}) { 62} = {}) {
62 const { baseUrl } = options 63 const { baseUrl } = options
63 64
@@ -88,6 +89,7 @@ function buildVideoLink (options: {
88 if (options.title === false) params.set('title', '0') 89 if (options.title === false) params.set('title', '0')
89 if (options.warningTitle === false) params.set('warningTitle', '0') 90 if (options.warningTitle === false) params.set('warningTitle', '0')
90 if (options.controls === false) params.set('controls', '0') 91 if (options.controls === false) params.set('controls', '0')
92 if (options.peertubeLink === false) params.set('peertubeLink', '0')
91 93
92 let hasParams = false 94 let hasParams = false
93 params.forEach(() => hasParams = true) 95 params.forEach(() => hasParams = true)