From c427dec849f58cc82b0738fe38064e9562987ae4 Mon Sep 17 00:00:00 2001 From: oberon Date: Wed, 11 Feb 2026 22:06:55 +0100 Subject: [PATCH] fehlersuche controll seite und app.js --- static/js/app.js | 5 ++++- templates/control.html | 8 +++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/static/js/app.js b/static/js/app.js index bdfe032..971af24 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -1,6 +1,9 @@ // static/js/app.js – MK Control Frontend document.addEventListener('DOMContentLoaded', () => { + + const config = window.mkConfig || {}; + console.log("app.js verwendet config:", config); console.log('MK Control Frontend geladen'); // ── Elemente ─────────────────────────────────────────────────────────────── @@ -18,7 +21,7 @@ document.addEventListener('DOMContentLoaded', () => { } // ── Config aus Template (von Flask eingebettet) ─────────────────────────── - const config = window.config || {}; // Sicherstellen, dass config existiert + //const config = window.config || {}; // Sicherstellen, dass config existiert // ── Connect-Button ──────────────────────────────────────────────────────── connectBtn.addEventListener('click', async () => { diff --git a/templates/control.html b/templates/control.html index 3135db7..1ae78a8 100644 --- a/templates/control.html +++ b/templates/control.html @@ -72,8 +72,10 @@ {% block scripts %} {% endblock %} \ No newline at end of file