1
0
mirror of https://github.com/sehugg/8bitworkshop.git synced 2025-08-15 17:27:22 +00:00

sentry: new version

This commit is contained in:
Steven Hugg
2019-12-14 04:48:03 -06:00
parent 70ed0b1cd7
commit 27af51cfc5

View File

@@ -39,8 +39,8 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
<!-- Sentry error reporting --> <!-- Sentry error reporting -->
<script <script
src="https://browser.sentry-cdn.com/5.9.1/bundle.min.js" src="https://browser.sentry-cdn.com/5.10.2/bundle.min.js"
integrity="sha384-/x1aHz0nKRd6zVUazsV6CbQvjJvr6zQL2CHbQZf3yoLkezyEtZUpqUNnOLW9Nt3v" integrity="sha384-ssBfXiBvlVC7bdA/VX03S88B5MwXQWdnpJRbUYFPgswlOBwETwTp6F3SMUNpo9M9"
crossorigin="anonymous"></script> crossorigin="anonymous"></script>
<script> <script>
if (window.location.host.endsWith('8bitworkshop.com')) { if (window.location.host.endsWith('8bitworkshop.com')) {
@@ -49,8 +49,8 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
beforeBreadcrumb(breadcrumb, hint) { beforeBreadcrumb(breadcrumb, hint) {
if (breadcrumb.category === 'xhr' && typeof breadcrumb.data.url === 'string') { if (breadcrumb.category === 'xhr' && typeof breadcrumb.data.url === 'string') {
if (breadcrumb.data.url.startsWith('http')) return null; // discard external scripts if (breadcrumb.data.url.startsWith('http')) return null; // discard external scripts
return breadcrumb;
} }
return breadcrumb;
}, },
}); });
} }