From de61544582726713c965d3369902f4a464f72e20 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 11 Aug 2022 15:28:11 +0200 Subject: Add plugin hooks/placeholder to share modal --- client/src/root-helpers/video.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'client/src/root-helpers/video.ts') 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 @@ import { HTMLServerConfig, Video } from '@shared/models' -function buildVideoOrPlaylistEmbed (embedUrl: string, embedTitle: string) { +function buildVideoOrPlaylistEmbed (options: { + embedUrl: string + embedTitle: string +}) { + const { embedUrl, embedTitle } = options + const iframe = document.createElement('iframe') iframe.title = embedTitle -- cgit v1.2.3