timedelta error fix

This commit is contained in:
oberon 2026-02-16 16:40:12 +01:00
parent 54ec3d6e2d
commit 61a5d030a5
2 changed files with 8 additions and 31 deletions

View File

@ -87,21 +87,6 @@
crossorigin="anonymous"></script>
{% block scripts %}
{% if config is defined and config is not none %}
<script>
// 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 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>

View File

@ -167,22 +167,14 @@
<!-- Seiten-spezifische Config setzen (nur wenn config existiert) -->
{% block scripts %}
{% if config %}
{% super() %} <!-- Ruft den Basis-Block auf (Module laden + Initialisierung) -->
<script>
// Config + globale Sounds global verfügbar machen (nur auf Seiten mit config)
// Config + globale Sounds global verfügbar machen (nur auf dieser Seite)
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);
// Module initialisieren (kann auch in app.js passieren, hier nur für Sicherheit)
initConfig();
initStatus();
initConnect();
initChannels();
initSoundboard();
// connection-check wird von connect/reconnect aufgerufen
console.log("control.html → mkConfig gesetzt:", window.mkConfig);
console.log("control.html → mkGlobalSounds:", window.mkGlobalSounds);
</script>
{% endif %}
{% endblock %}