aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/root-helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-08-11 15:28:11 +0200
committerChocobozzz <me@florianbigard.com>2022-08-11 15:28:11 +0200
commitde61544582726713c965d3369902f4a464f72e20 (patch)
treed66d87bb7d633906e1a36c4e72ee7109316db713 /client/src/root-helpers
parent2a95b88477a547c319108c0bab8692624df6804c (diff)
downloadPeerTube-de61544582726713c965d3369902f4a464f72e20.tar.gz
PeerTube-de61544582726713c965d3369902f4a464f72e20.tar.zst
PeerTube-de61544582726713c965d3369902f4a464f72e20.zip
Add plugin hooks/placeholder to share modal
Diffstat (limited to 'client/src/root-helpers')
-rw-r--r--client/src/root-helpers/video.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/root-helpers/video.ts b/client/src/root-helpers/video.ts
index 4290992aa..ba84e49ea 100644
--- a/client/src/root-helpers/video.ts
+++ b/client/src/root-helpers/video.ts
@@ -1,6 +1,11 @@
1import { HTMLServerConfig, Video } from '@shared/models' 1import { HTMLServerConfig, Video } from '@shared/models'
2 2
3function buildVideoOrPlaylistEmbed (embedUrl: string, embedTitle: string) { 3function buildVideoOrPlaylistEmbed (options: {
4 embedUrl: string
5 embedTitle: string
6}) {
7 const { embedUrl, embedTitle } = options
8
4 const iframe = document.createElement('iframe') 9 const iframe = document.createElement('iframe')
5 10
6 iframe.title = embedTitle 11 iframe.title = embedTitle