Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Fix error display for embeds

Chocobozzzc7c6afc66d76
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html
index 8ec03d1995..f30dda96b4 100644
--- a/client/src/standalone/videos/embed.html
+++ b/client/src/standalone/videos/embed.html
@@ -59,6 +59,12 @@
const errorText = document.getElementById('error-content')
errorText.innerHTML = text
+
+ const videoWrapper = document.getElementById('video-wrapper')
+ if (videoWrapper) videoWrapper.style.display = 'none'
+
+ const placeholderPreview = document.getElementById('placeholder-preview')
+ if (placeholderPreview) placeholderPreview.style.display = 'none'
}
window.onerror = function () {