mirror of https://github.com/Chocobozzz/PeerTube
Fix error display for embeds
parent
597da8dd81
commit
c7c6afc66d
|
@ -59,6 +59,12 @@
|
||||||
|
|
||||||
const errorText = document.getElementById('error-content')
|
const errorText = document.getElementById('error-content')
|
||||||
errorText.innerHTML = text
|
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 () {
|
window.onerror = function () {
|
||||||
|
|
Loading…
Reference in New Issue