Merge pull request #5308 from betagouv/fix-crisp-warning

Suppression d'un avertissement de Crisp dans la console Javascript
This commit is contained in:
Pierre de La Morinerie 2020-06-26 16:17:32 +02:00 committed by GitHub
commit cacdb92e20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,4 +40,7 @@ if (enabled) {
'session:event',
[[['PAGE_VIEW', { URL: window.location.pathname }]]]
]);
// Prevent Crisp to log warnings about Sentry overriding document.addEventListener
window.$crisp.push(['safe', true]);
}