From 863530b654fa825859cde173cba9f946fb796a27 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 12 Feb 2025 14:49:56 +0100 Subject: [PATCH] BigInt must be supported --- client/src/index.html | 9 +++++++++ client/src/standalone/videos/embed.html | 1 + 2 files changed, 10 insertions(+) diff --git a/client/src/index.html b/client/src/index.html index 16e65c65e..bba157f3f 100644 --- a/client/src/index.html +++ b/client/src/index.html @@ -81,6 +81,15 @@ if (/MSIE|Trident/.test(window.navigator.userAgent) ) { displayIncompatibleBrowser() } + + // BigInt must be supported (for the player to work) + try { + BigInt(9007199254740991) + } catch (err) { + console.error('BigInt is not supported on this web browser') + + displayIncompatibleBrowser() + } diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html index 8220b7b99..6ceb93b18 100644 --- a/client/src/standalone/videos/embed.html +++ b/client/src/standalone/videos/embed.html @@ -124,6 +124,7 @@ window.displayIncompatibleBrowser() } + // BigInt must be supported (for the player to work) try { BigInt(9007199254740991) } catch (err) {