Skip to content

Commit

Permalink
fix: reduce noisy JS errors (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstankiewicz authored Jun 3, 2021
1 parent a990453 commit 1dd73f8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@edx/frontend-enterprise-catalog-search": "0.1.8",
"@edx/frontend-enterprise-logistration": "0.1.5",
"@edx/frontend-enterprise-utils": "0.1.5",
"@edx/frontend-platform": "1.9.6",
"@edx/frontend-platform": "1.11.0",
"@edx/paragon": "14.6.1",
"@fortawesome/fontawesome-svg-core": "1.2.32",
"@fortawesome/free-brands-svg-icons": "5.15.1",
Expand Down
3 changes: 3 additions & 0 deletions src/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ initialize({
ALGOLIA_INDEX_NAME: process.env.ALGOLIA_INDEX_NAME || null,
INTEGRATION_WARNING_DISMISSED_COOKIE_NAME: process.env.INTEGRATION_WARNING_DISMISSED_COOKIE_NAME || null,
SHOW_MAINTENANCE_ALERT: process.env.SHOW_MAINTENANCE_ALERT,
// Logs JS errors matching the following regex as NewRelic page actions instead of
// errors,reducing JS error noise.
IGNORED_ERROR_REGEX: '(Axios Error|\'removeChild\'|Script error|getReadModeExtract)',
});
},
},
Expand Down

0 comments on commit 1dd73f8

Please sign in to comment.