✨ feat(chatwoot): Ajoute le script Chatwoot pour le support client en direct.
🎨 style(home.twig): Supprime commentaire inutile sur les dimensions des images. ♻️ refactor(base.twig): Déplace le script Chatwoot dans app.js pour centralisation.
This commit is contained in:
@@ -429,6 +429,26 @@ document.addEventListener('DOMContentLoaded', ()=>{
|
||||
// Gère le bandeau de cookies (bottom-right)
|
||||
handleCookieBanner()
|
||||
|
||||
(function(d, t) {
|
||||
var BASE_URL = "https://app.chatwoot.com";
|
||||
var g = d.createElement(t),
|
||||
s = d.getElementsByTagName(t)[0];
|
||||
|
||||
// Set the script source and make it async
|
||||
g.src = BASE_URL + "/packs/js/sdk.js";
|
||||
g.async = true;
|
||||
|
||||
// Insert the script element before the first existing script tag
|
||||
s.parentNode.insertBefore(g, s);
|
||||
|
||||
// Initialize Chatwoot once the SDK script has loaded
|
||||
g.onload = function() {
|
||||
window.chatwootSDK.run({
|
||||
websiteToken: '8SXvcdoWJVA77hug4mT5JhAP',
|
||||
baseUrl: BASE_URL
|
||||
})
|
||||
}
|
||||
})(document, "script");
|
||||
Sentry.init({
|
||||
dsn: "https://129785624e32fc0d4d7d8002a03b77b7@o4509563601092608.ingest.de.sentry.io/4510392640340048",
|
||||
// Setting this option to true will send default PII data to Sentry.
|
||||
|
||||
Reference in New Issue
Block a user