Disable window onerror

This commit is contained in:
Paul Kaplan 2019-01-09 16:56:31 -05:00 committed by GitHub
parent e8ea9c90c9
commit 2ea49fc4d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}