mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Merge pull request #2635 from paulkaplan/disable-global-handlers
Disable global error handling for sentry
This commit is contained in:
commit
ee30377f72
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