mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2025-02-17 00:21:20 -05:00
Disable window onerror
This commit is contained in:
parent
e8ea9c90c9
commit
2ea49fc4d3
1 changed files with 1 additions and 0 deletions
|
@ -43,6 +43,7 @@ if (`${process.env.SENTRY_DSN}` !== '') {
|
|||
// Do not collect global onerror, only collect specifically from React error boundaries.
|
||||
integrations.filter(i => i.name !== 'GlobalHandlers')
|
||||
});
|
||||
window.onerror = () => {}; // Doesn't look like global handlers filtering works, just stub window onerror
|
||||
window.Sentry = Sentry; // Allow GUI access to Sentry via window
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue