feat: Improved error filtering and reporting (#1293)

This commit is contained in:
Tom Moor
2020-05-29 07:22:09 -07:00
committed by GitHub
parent 1b25d12e2e
commit c929f83813
7 changed files with 59 additions and 6 deletions

View File

@@ -40,7 +40,16 @@
>
</script>
<script>
Sentry.init({ dsn: '<%= SENTRY_DSN %>' });
Sentry.init({
dsn: '<%= SENTRY_DSN %>',
ignoreErrors: [
'AuthorizationError',
'NetworkError',
'NotFoundError',
'OfflineError',
'UpdateRequiredError',
],
});
if (window.localStorage.getItem("theme") === "dark") {
window.document.querySelector('#root').style.background = "#111319";