Skip to content

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

BigInt must be supported

Chocobozzz863530b654fa
diff --git a/client/src/index.html b/client/src/index.html
index 16e65c65eb..bba157f3f7 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()
+ }
</script>
<my-app>
diff --git a/client/src/standalone/videos/embed.html b/client/src/standalone/videos/embed.html
index 8220b7b995..6ceb93b186 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) {