updated sentry.io

This commit is contained in:
Steven Hugg 2023-05-06 11:30:28 -05:00
parent 13656092c5
commit 0f011ee856
3 changed files with 14 additions and 22 deletions

View File

@ -586,26 +586,18 @@ $( ".dropdown-submenu" ).click(function(event) {
</script> </script>
<!-- Sentry error reporting --> <!-- Sentry error reporting -->
<script <script src='https://js.sentry-cdn.com/1fdd10e76a524c6e8d1e0a47f215fb28.min.js' crossorigin="anonymous"></script>
src="https://browser.sentry-cdn.com/6.4.1/bundle.min.js"
integrity="sha384-THoc7rflwZFKTdZNgv6jLFFDn299Uv3t1SW5B4yGLvLiCRTYP9ys6vXZcMl95TQF"
crossorigin="anonymous"
></script>
<script> <script>
if (window.Sentry) Sentry.init({ if (window.Sentry) Sentry.onLoad(function() {
dsn: 'https://bf329df3d1b34afa9f5b5e8ecd80ad11@o320878.ingest.sentry.io/1813925', Sentry.init({
beforeBreadcrumb(breadcrumb, hint) { sampleRate: window.location.host.endsWith('8bitworkshop.com') ? 0.5 : 0.05,
if (breadcrumb.category === 'xhr' && typeof breadcrumb.data.url === 'string') { beforeSend(event, hint) {
if (breadcrumb.data.url.startsWith('http')) return null; // discard external scripts const error = hint.originalException;
} if (error && error.hasOwnProperty('$loc')) return null; // ignore EmuHalt
return breadcrumb; return event;
}, },
beforeSend(event, hint) { });
const error = hint.originalException; });
if (error && error.hasOwnProperty('$loc')) return null; // ignore EmuHalt
return event;
},
});
</script> </script>
</body> </body>

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "8bitworkshop", "name": "8bitworkshop",
"version": "3.10.0", "version": "3.10.2",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "8bitworkshop", "name": "8bitworkshop",
"version": "3.10.0", "version": "3.10.2",
"license": "GPL-3.0", "license": "GPL-3.0",
"dependencies": { "dependencies": {
"@types/chroma-js": "^2.1.3", "@types/chroma-js": "^2.1.3",

View File

@ -1,6 +1,6 @@
{ {
"name": "8bitworkshop", "name": "8bitworkshop",
"version": "3.10.1", "version": "3.10.2",
"author": "Steven Hugg", "author": "Steven Hugg",
"category": "Development", "category": "Development",
"description": "8bitworkshop.com retro programming IDE", "description": "8bitworkshop.com retro programming IDE",