aboutsummaryrefslogtreecommitdiffhomepage
path: root/client
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-22 15:36:03 +0100
committerChocobozzz <me@florianbigard.com>2021-12-23 09:57:02 +0100
commitc7c6afc66d7611d4c02572d63801beca26c45204 (patch)
treec67e8c8edee17838af81e8001830e4e759113592 /client
parent597da8dd814a1e4b4dc69dd3ebed50c11619045d (diff)
downloadPeerTube-c7c6afc66d7611d4c02572d63801beca26c45204.tar.gz
PeerTube-c7c6afc66d7611d4c02572d63801beca26c45204.tar.zst
PeerTube-c7c6afc66d7611d4c02572d63801beca26c45204.zip
Fix error display for embeds
Diffstat (limited to 'client')
-rw-r--r--client/src/standalone/videos/embed.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html
index 8ec03d199..f30dda96b 100644
--- a/client/src/standalone/videos/embed.html
+++ b/client/src/standalone/videos/embed.html
@@ -59,6 +59,12 @@
59 59
60 const errorText = document.getElementById('error-content') 60 const errorText = document.getElementById('error-content')
61 errorText.innerHTML = text 61 errorText.innerHTML = text
62
63 const videoWrapper = document.getElementById('video-wrapper')
64 if (videoWrapper) videoWrapper.style.display = 'none'
65
66 const placeholderPreview = document.getElementById('placeholder-preview')
67 if (placeholderPreview) placeholderPreview.style.display = 'none'
62 } 68 }
63 69
64 window.onerror = function () { 70 window.onerror = function () {