Skip to content

ActivityPub-federated video streaming platform using P2P directly in your web browser

Don't break player on ice error

Chocobozzzda8637bac9e3
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html
index f30dda96b4..eab6f81a66 100644
--- a/client/src/standalone/videos/embed.html
+++ b/client/src/standalone/videos/embed.html
@@ -67,7 +67,12 @@
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()
}