Skip to content
Snippets Groups Projects
Commit 7776dca8 authored by Will Hunt's avatar Will Hunt
Browse files

add a fatal error tag

parent b10a6711
No related branches found
No related tags found
No related merge requests found
...@@ -87,9 +87,9 @@ function allowsChild(parent, child) { ...@@ -87,9 +87,9 @@ function allowsChild(parent, child) {
function hideOnError() { function hideOnError() {
// When an error occurs, log it and then hide everything! // When an error occurs, log it and then hide everything!
const handler = e => { const handler = e => {
Sentry.captureException(e, { Sentry.captureException(e, { tags: {
"fatalError": true
}) }});
if (e.message === "ResizeObserver loop completed with undelivered notifications." || if (e.message === "ResizeObserver loop completed with undelivered notifications." ||
e.message === "ResizeObserver loop limit exceeded" || e.message === "ResizeObserver loop limit exceeded" ||
// hydrogen renders an <img> with src = undefined while the image is being decrypted // hydrogen renders an <img> with src = undefined while the image is being decrypted
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment