Skip to content

Commit

Permalink
Disable Crisp warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Perlence committed Dec 6, 2024
1 parent 2c4667f commit c3c691b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions layouts/contact/contact.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ <h3 class="contact--address-title">{{ .Title }}</h3>

function openChat() {
initChat();
window.$crisp.push(['safe', true]);
// Sentry instruments methods document.addEventListener() and
// document.removeEventListener(), and Crisp complains about it. Disable
// the warnings.
window.$crisp.push(['do', 'chat:show']);
window.$crisp.push(['do', 'chat:open']);
}
Expand Down

0 comments on commit c3c691b

Please sign in to comment.