Fix for browsers without bigint support (#210)

* Attempt to prevent bigint errors

* Define bigint in index.html

* BigInt64Array

* Maybe now?
This commit is contained in:
Misode
2022-03-10 23:57:08 +01:00
committed by GitHub
parent 68b7139b9d
commit 48fdd57caf

View File

@@ -8,10 +8,10 @@
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-73024255-2', 'auto');
ga('set', 'page', location.pathname);
ga('set', 'dimension1', localStorage.getItem('theme') ?? 'default');
ga('set', 'dimension1', localStorage.getItem('theme') || 'default');
ga('set', 'dimension2', 'v2');
ga('set', 'dimension3', localStorage.getItem('schema_version') ?? '1.18');
ga('set', 'dimension4', localStorage.getItem('language') ?? 'en');
ga('set', 'dimension3', localStorage.getItem('schema_version') || '1.18');
ga('set', 'dimension4', localStorage.getItem('language') || 'en');
ga('set', 'dimension5', 'none');
ga('send', 'pageview');
</script>
@@ -20,6 +20,14 @@
<title>Data Pack Generators Minecraft 1.15, 1.16, 1.17</title>
<link rel="icon" href="/src/favicon-32.png" sizes="32x32">
<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>
<script>
if (typeof BigInt !== 'function') {
BigInt = function(e) { return e }
}
if (typeof BigInt64Array !== 'function') {
BigInt64Array = function() { }
}
</script>
</head>
<body>
<div data-ea-publisher="misode-github-io" data-ea-manual="true" id="ad-placeholder"></div>