BigInt must be supported

This commit is contained in:
Chocobozzz 2025-02-12 14:49:56 +01:00
parent 48b89cb6b2
commit 863530b654
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
2 changed files with 10 additions and 0 deletions

View File

@ -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>

View File

@ -124,6 +124,7 @@
window.displayIncompatibleBrowser()
}
// BigInt must be supported (for the player to work)
try {
BigInt(9007199254740991)
} catch (err) {