Created
March 25, 2021 23:10
-
-
Save brenogazzola/526281a8e6b2d60665deaab9b4af6098 to your computer and use it in GitHub Desktop.
Sentry
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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