]> 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 f30dda96b4bba5d64d9e454005cb79e5c4921f1d..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>
         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()
       }