From 5949266e89c665e038293949ea9546df5d8b6624 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Fri, 26 Jun 2020 13:02:02 +0000 Subject: [PATCH] javascript: silence Crisp warning in Javascript console --- app/javascript/shared/track/crisp.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/javascript/shared/track/crisp.js b/app/javascript/shared/track/crisp.js index 55819e034..f03546df6 100644 --- a/app/javascript/shared/track/crisp.js +++ b/app/javascript/shared/track/crisp.js @@ -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]); }