From 7986bc70b113a497e5e284fa16747ca4474b99a7 Mon Sep 17 00:00:00 2001 From: syoul Date: Sat, 6 Dec 2025 22:07:44 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20ajout=20logs=20debug=20pour=20lien=20?= =?UTF-8?q?=C3=89quipe?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/strategie-script.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/public/strategie-script.js b/public/strategie-script.js index 0e4dd05..bb8b959 100644 --- a/public/strategie-script.js +++ b/public/strategie-script.js @@ -922,8 +922,15 @@ Interface de pilotage pour les responsables sécurité des PME. teamLink.style.cssText = 'color: #2ecc71; text-decoration: none; font-weight: bold; cursor: pointer; font-size: 14px; padding: 5px 8px; border-radius: 4px; transition: background 0.2s;'; teamLink.addEventListener('mouseenter', () => teamLink.style.background = 'rgba(46, 204, 113, 0.1)'); teamLink.addEventListener('mouseleave', () => teamLink.style.background = 'transparent'); - // Insérer au début du conteneur - container.insertBefore(teamLink, container.firstChild); + // Insérer au début du conteneur (ou à la fin si firstChild est null) + if (container.firstChild) { + container.insertBefore(teamLink, container.firstChild); + } else { + container.appendChild(teamLink); + } + console.log('✅ Lien Équipe ajouté au header'); + } else { + console.log('ℹ️ Lien Équipe existe déjà'); } // Ajouter les liens des pages de stratégie