Skip to content
This repository has been archived by the owner on Jan 1, 2024. It is now read-only.

Commit

Permalink
fix(containers/App): uncomment Sentry code
Browse files Browse the repository at this point in the history
fix(containers/App): uncomment Sentry code
  • Loading branch information
Metnew committed Nov 3, 2017
1 parent 4d9ec26 commit a58db5e
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions src/common/containers/App/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,18 +71,17 @@ class App extends Component {
}

componentDidMount () {
// NOTE: uncomment if you use Sentry
// if (process.env.SENTRY_PUBLIC_DSN) {
// const script = document.createElement('script')
// script.type = 'text/javascript'
// script.crossorigin = 'anonymous'
// script.async = true
// script.onload = () => {
// Raven.config(process.env.SENTRY_PUBLIC_DSN).install()
// }
// script.src = 'https://cdn.ravenjs.com/3.16.1/raven.min.js'
// document.body.appendChild(script)
// }
if (process.env.SENTRY_PUBLIC_DSN) {
const script = document.createElement('script')
script.type = 'text/javascript'
script.crossorigin = 'anonymous'
script.async = true
script.onload = () => {
Raven.config(process.env.SENTRY_PUBLIC_DSN).install()
}
script.src = 'https://cdn.ravenjs.com/3.19.1/raven.min.js'
document.body.appendChild(script)
}

if (process.env.GA_ID) {
ReactGA.initialize(process.env.GA_ID)
Expand Down

0 comments on commit a58db5e

Please sign in to comment.