mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 07:38:07 -05:00
Disable global handlers
This commit is contained in:
parent
384d6148e0
commit
885977e554
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue