mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2025-02-16 17:30:27 +00:00
updated sentry.io, removed defer tag
This commit is contained in:
parent
bf6e399ce9
commit
0f8beea1b3
48
index.html
48
index.html
@ -38,31 +38,6 @@ if (window.location.host.endsWith('8bitworkshop.com')) {
|
|||||||
<script defer src="https://www.gstatic.com/firebasejs/5.11.1/firebase-auth.js"></script>
|
<script defer src="https://www.gstatic.com/firebasejs/5.11.1/firebase-auth.js"></script>
|
||||||
<script defer src="config.js"></script>
|
<script defer src="config.js"></script>
|
||||||
|
|
||||||
<!-- Sentry error reporting -->
|
|
||||||
<script defer
|
|
||||||
src="https://browser.sentry-cdn.com/5.22.3/bundle.tracing.min.js"
|
|
||||||
integrity="sha384-HfEJlGrJtFM0B01Wt4sGzTbxWqLMcMeGAXCbyQyB+iK9BhnDmNAtIGovhekIQOa2"
|
|
||||||
crossorigin="anonymous"
|
|
||||||
></script>
|
|
||||||
<script defer>
|
|
||||||
if (window.location.host.endsWith('8bitworkshop.com')) {
|
|
||||||
Sentry.init({
|
|
||||||
dsn: 'https://bf329df3d1b34afa9f5b5e8ecd80ad11@o320878.ingest.sentry.io/1813925',
|
|
||||||
beforeBreadcrumb(breadcrumb, hint) {
|
|
||||||
if (breadcrumb.category === 'xhr' && typeof breadcrumb.data.url === 'string') {
|
|
||||||
if (breadcrumb.data.url.startsWith('http')) return null; // discard external scripts
|
|
||||||
}
|
|
||||||
return breadcrumb;
|
|
||||||
},
|
|
||||||
beforeSend(event, hint) {
|
|
||||||
const error = hint.originalException;
|
|
||||||
if (error instanceof EmuHalt) return null; // ignore EmuHalt
|
|
||||||
return event;
|
|
||||||
},
|
|
||||||
});
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
@ -636,5 +611,28 @@ $( ".dropdown-submenu" ).click(function(event) {
|
|||||||
startUI();
|
startUI();
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<!-- Sentry error reporting -->
|
||||||
|
<script
|
||||||
|
src="https://browser.sentry-cdn.com/5.25.0/bundle.tracing.min.js"
|
||||||
|
integrity="sha384-MxPEqyePOMqaz3prq1TexMEXtfnxqvet9uhebPAm5SI4Pz3Ga9HwbmE5FY2Bah20"
|
||||||
|
crossorigin="anonymous"
|
||||||
|
></script>
|
||||||
|
<script>
|
||||||
|
Sentry.init({
|
||||||
|
dsn: 'https://bf329df3d1b34afa9f5b5e8ecd80ad11@o320878.ingest.sentry.io/1813925',
|
||||||
|
beforeBreadcrumb(breadcrumb, hint) {
|
||||||
|
if (breadcrumb.category === 'xhr' && typeof breadcrumb.data.url === 'string') {
|
||||||
|
if (breadcrumb.data.url.startsWith('http')) return null; // discard external scripts
|
||||||
|
}
|
||||||
|
return breadcrumb;
|
||||||
|
},
|
||||||
|
beforeSend(event, hint) {
|
||||||
|
const error = hint.originalException;
|
||||||
|
if (error instanceof EmuHalt) return null; // ignore EmuHalt
|
||||||
|
return event;
|
||||||
|
},
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user