Skip to content

Commit

Permalink
ignore sentry errors from youtube scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
night committed Jan 25, 2023
1 parent 805772f commit 2d9019f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/utils/sentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,13 @@ Sentry.init({
dsn: process.env.SENTRY_URL,
ignoreErrors,
allowUrls: [/betterttv\.js/, /\.betterttv\.net/, /\/betterttv\//i],
denyUrls: [/static\.twitchcdn\.net\/assets/, /avalon\.js/, /avalon\.[a-zA-Z0-9]+\.js/, /script\.js/],
denyUrls: [
/static\.twitchcdn\.net\/assets/,
/avalon\.js/,
/avalon\.[a-zA-Z0-9]+\.js/,
/script\.js/,
/www.youtube.com\/s\/desktop\//,
],
integrations: [
new Sentry.Integrations.GlobalHandlers({
onunhandledrejection: false,
Expand Down

0 comments on commit 2d9019f

Please sign in to comment.