mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -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');
|
const Sentry = require('@sentry/browser');
|
||||||
if (`${process.env.SENTRY_DSN}` !== '') {
|
if (`${process.env.SENTRY_DSN}` !== '') {
|
||||||
Sentry.init({
|
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
|
window.Sentry = Sentry; // Allow GUI access to Sentry via window
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue