Fix error display for embeds

pull/4696/head
Chocobozzz 2021-12-22 15:36:03 +01:00
parent 597da8dd81
commit c7c6afc66d
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 6 additions and 0 deletions

View File

@ -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 () {