cicd: fix sentry integration

This commit is contained in:
Jean-Baptiste Pasquier
2020-10-08 10:21:36 +02:00
parent a356e01026
commit 2c539947a5
2 changed files with 9 additions and 8 deletions

View File

@ -1,7 +1,8 @@
Sentry.init({
dsn: 'https://b4b29557689049a39168599577adb940@sentry.startinblox.com/4',
integrations: [new Sentry.Integrations.BrowserTracing()],
environment: document.location.hostname,
tracesSampleRate: 1.0,
});
if(typeof Sentry !== 'undefined') {
Sentry.init({
dsn: 'https://b4b29557689049a39168599577adb940@sentry.startinblox.com/4',
integrations: [new Sentry.Integrations.BrowserTracing()],
environment: document.location.hostname,
tracesSampleRate: 1.0,
});
}