aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/root-helpers
diff options
context:
space:
mode:
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