📈 ajoute sentry
parent
3d6fefd6fe
commit
504e0d7497
|
@ -115,6 +115,7 @@
|
|||
</div>
|
||||
<div id="js" />
|
||||
<script src="https://use.fontawesome.com/1da10bbdec.js"></script>
|
||||
<script src="https://cdn.ravenjs.com/3.19.1/raven.min.js" crossorigin="anonymous"></script>
|
||||
<script type="text/javascript">
|
||||
if (/MSIE \d|Trident.*rv:/.test(navigator.userAgent)) {
|
||||
// For ie, polyfill everything, as I can't figure what's going on, and which polyfill is missing...
|
||||
|
|
|
@ -18,6 +18,13 @@ import {
|
|||
import ReactPiwik from './Tracker'
|
||||
import { getIframeOption, getUrl, inIframe } from './utils'
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
// eslint-disable-next-line no-undef
|
||||
Raven.config(
|
||||
'https://9051375f856646d694943532caf2b45f@sentry.data.gouv.fr/18'
|
||||
).install()
|
||||
}
|
||||
|
||||
let tracker = defaultTracker
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
tracker = new ReactPiwik({
|
||||
|
|
Loading…
Reference in New Issue