🐛 fix(app.js): Empêche l'exécution du bandeau de notification et cookies en mode test.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user