From 423a89557c2e98761c177c9dcd144cb712081c07 Mon Sep 17 00:00:00 2001 From: hermes-agent Date: Fri, 14 Aug 2026 15:42:33 +0200 Subject: [PATCH] Fix: toutes les branches d office fermees (onPath retournait true pour null) --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index d91c1a5..f76ff6f 100644 --- a/index.html +++ b/index.html @@ -241,7 +241,7 @@ function RT(){ }; dv.appendChild(rw) } - function onPath(t) { if(!t||t===n)return true; var p=t._p; while(p){if(p===n)return true;p=p._p}return false; } + function onPath(t) { if(!t)return false; if(t===n)return true; var p=t._p; while(p){if(p===n)return true;p=p._p}return false; } if(br){var kd=document.createElement('div');kd.className='chd'+(onPath(N)?' o':''); for(var i=0;i