]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/src/standalone/videos/embed.html
Bumped to version v5.2.1
[github/Chocobozzz/PeerTube.git] / client / src / standalone / videos / embed.html
index 8ec03d1995643a027027767a4836e6f0f6e66879..32bf5f6553a0a0ddc5761ee9a85ee1cbeb20dc08 100644 (file)
@@ -35,6 +35,7 @@
   <body id="custom-css" class="standalone-video-embed">
 
     <div id="error-block">
+      <!-- eslint-disable-next-line @angular-eslint/template/elements-content -->
       <h1 id="error-title"></h1>
 
       <div id="error-content"></div>
 
         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 () {
+      window.onerror = function (msg) {
+        if (typeof msg === 'string' && msg.toLowerCase().includes(' ice ')) {
+          console.warn(msg)
+          return
+        }
+
         window.displayIncompatibleBrowser()
       }