From 885977e554b30eaa48908f31da04725e3f6c0ff3 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Tue, 8 Jan 2019 14:19:11 -0500 Subject: [PATCH] Disable global handlers --- src/views/preview/project-view.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/preview/project-view.jsx b/src/views/preview/project-view.jsx index b083d1927..43ad021d6 100644 --- a/src/views/preview/project-view.jsx +++ b/src/views/preview/project-view.jsx @@ -38,7 +38,10 @@ const localStorageAvailable = 'localStorage' in window && window.localStorage != const Sentry = require('@sentry/browser'); if (`${process.env.SENTRY_DSN}` !== '') { Sentry.init({ - dsn: `${process.env.SENTRY_DSN}` + dsn: `${process.env.SENTRY_DSN}`, + integrations: integrations => + // Do not collect global onerror, only collect specifically from React error boundaries. + integrations.filter(i => i.name !== 'GlobalHandlers') }); window.Sentry = Sentry; // Allow GUI access to Sentry via window }