diff --git a/app/web/app.js b/app/web/app.js index 448a2d3..bfe5f9c 100644 --- a/app/web/app.js +++ b/app/web/app.js @@ -329,8 +329,8 @@ loadMe(); // ---------- Hilfsfunktionen ---------- function escHtml(str) { - if (!str) return ""; - return str.replace(/&/g, "&").replace(//g, ">").replace(/"/g, """); + if (str === null || str === undefined || str === "") return ""; + return String(str).replace(/&/g, "&").replace(//g, ">").replace(/"/g, """); } function fmtDate(iso) { @@ -760,6 +760,7 @@ async function loadStatus() { `; } catch (e) { + console.error("loadStatus error:", e); container.innerHTML = '

Fehler beim Laden.

'; } } diff --git a/app/web/index.html b/app/web/index.html index 828977c..c2681c7 100644 --- a/app/web/index.html +++ b/app/web/index.html @@ -202,6 +202,6 @@
- +