]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Fix missing width/height in share iframe
authorChocobozzz <me@florianbigard.com>
Wed, 20 Oct 2021 07:56:15 +0000 (09:56 +0200)
committerChocobozzz <me@florianbigard.com>
Wed, 20 Oct 2021 07:56:15 +0000 (09:56 +0200)
client/src/assets/player/utils.ts

index cbca1065f9131cbdf8d738dcf5d9001b6cf45ecc..18380d9501033ee03baa243916f26e4e3890287d 100644 (file)
@@ -46,6 +46,8 @@ function buildVideoOrPlaylistEmbed (embedUrl: string, embedTitle: string) {
   const iframe = document.createElement('iframe')
 
   iframe.title = embedTitle
+  iframe.width = '560'
+  iframe.height = '315'
   iframe.src = embedUrl
   iframe.frameBorder = '0'
   iframe.allowFullscreen = true