Version 2026.5.17 — Popup user-badge avec ligne session (MM:SS)

- Couleur selon seuil
[code interpolé]
This commit is contained in:
2026-04-21 11:00:00 +02:00
parent 72fb565afa
commit f54ccd28d2
5 changed files with 274 additions and 20 deletions
+2 -6
View File
@@ -193,12 +193,8 @@ async function fetchFicheHtml(origin, phpsessid, formLink) {
// Sinon : on retourne ce qu'on a
return html;
}
const html = await r.text();
console.log("[bg] fiche status =", r.status, "| taille =", html.length);
if (html.length < 500) {
console.warn("[bg] ⚠ fiche très courte, contenu =", JSON.stringify(html));
}
return html;
// Ne devrait pas arriver (la boucle fait return avant)
throw new Error("fetchFicheHtml: max retries reached");
}
// v4.1.7 : API timeline EasyVista. Renvoie le JSON des actions d'une fiche,