aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-20 09:56:15 +0200
committerChocobozzz <me@florianbigard.com>2021-10-20 09:56:15 +0200
commit926bf5496fd3caa204b5d48a71b6028544d7d49e (patch)
tree74e06d5166aaafab32c0dcf2425e386bb6d1c5e7
parent05c114f5b48c318dfb0cd3988c9adf24b581efb5 (diff)
downloadPeerTube-926bf5496fd3caa204b5d48a71b6028544d7d49e.tar.gz
PeerTube-926bf5496fd3caa204b5d48a71b6028544d7d49e.tar.zst
PeerTube-926bf5496fd3caa204b5d48a71b6028544d7d49e.zip
Fix missing width/height in share iframe
-rw-r--r--client/src/assets/player/utils.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/client/src/assets/player/utils.ts b/client/src/assets/player/utils.ts
index cbca1065f..18380d950 100644
--- a/client/src/assets/player/utils.ts
+++ b/client/src/assets/player/utils.ts
@@ -46,6 +46,8 @@ function buildVideoOrPlaylistEmbed (embedUrl: string, embedTitle: string) {
46 const iframe = document.createElement('iframe') 46 const iframe = document.createElement('iframe')
47 47
48 iframe.title = embedTitle 48 iframe.title = embedTitle
49 iframe.width = '560'
50 iframe.height = '315'
49 iframe.src = embedUrl 51 iframe.src = embedUrl
50 iframe.frameBorder = '0' 52 iframe.frameBorder = '0'
51 iframe.allowFullscreen = true 53 iframe.allowFullscreen = true