🐛 fix(app.js): Empêche l'exécution du bandeau de notification et cookies en mode test.

This commit is contained in:
Serreau Jovann
2025-11-21 23:01:41 +01:00
parent 538a4f54bd
commit 9816ec72b9

View File

@@ -450,13 +450,14 @@ document.addEventListener('DOMContentLoaded', ()=>{
// initializeUI appelle subscribeAndSave si la permission est accordée
initializeUI()
if (!isPerformanceTestAgent()) {
// Gère le bandeau de notification (bottom-left)
handleNotificationBanner()
// Gère le bandeau de notification (bottom-left)
handleNotificationBanner()
// Gère le bandeau de cookies (bottom-right)
handleCookieBanner()
if (isPerformanceTestAgent()) {
// Gère le bandeau de cookies (bottom-right)
handleCookieBanner()
}
if (!isPerformanceTestAgent()) {
var BASE_URL_WOOT = "https://app.chatwoot.com";
let script = document.createElement('script');
script.setAttribute('src', BASE_URL_WOOT + "/packs/js/sdk.js")