From da8637bac9e32b21df2389d7698ce91070ec3a39 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Mon, 20 Jun 2022 09:57:46 +0200 Subject: Don't break player on ice error I don't really know why the ice error is not catched by simple-peer, where it should according to the code --- client/src/standalone/videos/embed.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'client/src/standalone') diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html index f30dda96b..eab6f81a6 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() } -- cgit v1.2.3