neuer fix

This commit is contained in:
2026-02-16 16:33:38 +01:00
parent 02150e0e62
commit 54ec3d6e2d
2 changed files with 8 additions and 13 deletions
+8 -4
View File
@@ -87,18 +87,22 @@
crossorigin="anonymous"></script>
{% block scripts %}
{% if config %}
{% if config is defined and config is not none %}
<script>
// Config + globale Sounds nur setzen, wenn vorhanden
window.mkConfig = {{ config | tojson | safe }};
// Config + globale Sounds nur setzen, wenn config wirklich existiert
window.mkConfig = {{ config | tojson | safe }};
window.mkGlobalSounds = {{ global_sounds | tojson | safe }};
console.log("base.html → mkConfig gesetzt:", window.mkConfig);
console.log("base.html → mkGlobalSounds:", window.mkGlobalSounds);
</script>
{% else %}
<script>
console.log("base.html → Keine config auf dieser Seite mkConfig nicht gesetzt");
</script>
{% endif %}
<!-- Alle Module laden (immer) -->
<!-- Alle JS-Module laden (immer) -->
<script src="{{ url_for('static', filename='js/config.js') }}"></script>
<script src="{{ url_for('static', filename='js/ui-status.js') }}"></script>
<script src="{{ url_for('static', filename='js/ui-connect.js') }}"></script>