From b8b2aec67df078fe94fcab710e45c79324ded42b Mon Sep 17 00:00:00 2001 From: oberon Date: Mon, 16 Feb 2026 09:19:27 +0100 Subject: [PATCH] next fix for app.js --- static/js/app.js | 9 ++++----- templates/control.html | 11 +++++------ 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/static/js/app.js b/static/js/app.js index 72dfca0..ad5b6e1 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -21,12 +21,11 @@ document.addEventListener('DOMContentLoaded', () => { } // ── Config & globale Sounds aus Template ────────────────────────────────── - const config = {{ config | tojson | safe }}; - const globalSounds = {{ global_sounds | tojson | safe }}; - window.mkConfig = config; // global verfügbar + const config = window.mkConfig || {}; + const globalSounds = window.mkGlobalSounds || []; - console.log("Config im JS:", config); - console.log("Globale Sounds:", globalSounds); + console.log("app.js verwendet config:", config); + console.log("app.js verwendet globalSounds:", globalSounds); // ── Status-Anzeige ───────────────────────────────────────────────────────── function updateStatus(connected, message = '') { diff --git a/templates/control.html b/templates/control.html index 079ca7f..d92bb71 100644 --- a/templates/control.html +++ b/templates/control.html @@ -167,12 +167,11 @@ {% block scripts %} {% endblock %} \ No newline at end of file