chore: Sentry performance monitoring (#1841)
* Hook up performance monitoring * lint
This commit is contained in:
@@ -44,29 +44,7 @@
|
||||
<script>
|
||||
//inject-env//
|
||||
</script>
|
||||
<script
|
||||
src="https://browser.sentry-cdn.com/5.22.3/bundle.min.js"
|
||||
integrity="sha384-A1qzcXXJWl+bzYr+r8AdFzSaLbdcbYRFmG37MEDKr4EYjtraUyoZ6UiMw31jHcV9"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
<script>
|
||||
if ("//inject-sentry-dsn//" && window.Sentry) {
|
||||
window.Sentry.init({
|
||||
dsn: "//inject-sentry-dsn//",
|
||||
ignoreErrors: [
|
||||
"ResizeObserver loop limit exceeded",
|
||||
"AuthorizationError",
|
||||
"BadRequestError",
|
||||
"NetworkError",
|
||||
"NotFoundError",
|
||||
"OfflineError",
|
||||
"ServiceUnavailableError",
|
||||
"UpdateRequiredError",
|
||||
"ChunkLoadError",
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
if (window.localStorage && window.localStorage.getItem("theme") === "dark") {
|
||||
window.document.querySelector("#root").style.background = "#111319";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user