Skip to content

Instantly share code, notes, and snippets.

@brenogazzola
Created March 25, 2021 23:10
Show Gist options
  • Save brenogazzola/526281a8e6b2d60665deaab9b4af6098 to your computer and use it in GitHub Desktop.
Save brenogazzola/526281a8e6b2d60665deaab9b4af6098 to your computer and use it in GitHub Desktop.
Sentry
Sentry.init({
dsn: 'https://[email protected]/5692474',
whitelistUrls: [
/festalab\.com\.br\/packs\/js\/public.*js/,
/festalab\.com\.br\/packs\/js\/internal.*js/,
/festalab\.com\.br\/packs\/js\/legacy.*js/,
/festalab\.com\.br\/packs\/js\/fudgeballs.*js/
],
ignoreErrors: [
/SecurityError: DOM Exception 18$/,
/SecurityError: Failed to execute 'replaceState'/,
/SecurityError: Failed to read the 'localStorage'/,
/SecurityError: The operation is insecure/,
/NotAllowedError/,
/TypeError/,
/sendBeacon/
],
beforeSend (event, hint) {
// Safari WebView inside Facebook app
if (/fbclid/i.test(event.request.url)) {
return null
}
// Unsupported Browsers
if (!Util.deviceIsCompatible()) {
return null
}
return event
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment