From c7c6afc66d7611d4c02572d63801beca26c45204 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 22 Dec 2021 15:36:03 +0100 Subject: Fix error display for embeds --- client/src/standalone/videos/embed.html | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'client/src/standalone/videos/embed.html') 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 @@ 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 () { -- cgit v1.2.3