diff options
author | Chocobozzz <me@florianbigard.com> | 2022-08-11 15:28:11 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-08-11 15:28:11 +0200 |
commit | de61544582726713c965d3369902f4a464f72e20 (patch) | |
tree | d66d87bb7d633906e1a36c4e72ee7109316db713 /client/src/root-helpers | |
parent | 2a95b88477a547c319108c0bab8692624df6804c (diff) | |
download | PeerTube-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.ts | 7 |
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 @@ | |||
1 | import { HTMLServerConfig, Video } from '@shared/models' | 1 | import { HTMLServerConfig, Video } from '@shared/models' |
2 | 2 | ||
3 | function buildVideoOrPlaylistEmbed (embedUrl: string, embedTitle: string) { | 3 | function 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 |