]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/root-helpers/video.ts
Add plugin hooks/placeholder to share modal
[github/Chocobozzz/PeerTube.git] / client / src / root-helpers / video.ts
index 4290992aab93964f12ace229b17a2f951f23c97f..ba84e49ea2cd862081414f5be233df691a25a99b 100644 (file)
@@ -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