📈 ajoute sentry

pull/314/head
Johan Girod 2018-08-28 11:31:48 +02:00
parent 3d6fefd6fe
commit 504e0d7497
2 changed files with 8 additions and 0 deletions

View File

@ -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...

View File

@ -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({