timedelta error fix
This commit is contained in:
parent
54ec3d6e2d
commit
61a5d030a5
@ -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>
|
||||
|
||||
@ -167,22 +167,14 @@
|
||||
|
||||
<!-- Seiten-spezifische Config setzen (nur wenn config existiert) -->
|
||||
{% block scripts %}
|
||||
{% if config %}
|
||||
<script>
|
||||
// Config + globale Sounds global verfügbar machen (nur auf Seiten mit config)
|
||||
window.mkConfig = {{ config | tojson | safe }};
|
||||
window.mkGlobalSounds = {{ global_sounds | tojson | safe }};
|
||||
{% super() %} <!-- Ruft den Basis-Block auf (Module laden + Initialisierung) -->
|
||||
|
||||
console.log("base.html → mkConfig gesetzt:", window.mkConfig);
|
||||
console.log("base.html → mkGlobalSounds:", window.mkGlobalSounds);
|
||||
<script>
|
||||
// Config + globale Sounds global verfügbar machen (nur auf dieser Seite)
|
||||
window.mkConfig = {{ config | tojson | safe }};
|
||||
window.mkGlobalSounds = {{ global_sounds | tojson | safe }};
|
||||
|
||||
// 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
|
||||
</script>
|
||||
{% endif %}
|
||||
console.log("control.html → mkConfig gesetzt:", window.mkConfig);
|
||||
console.log("control.html → mkGlobalSounds:", window.mkGlobalSounds);
|
||||
</script>
|
||||
{% endblock %}
|
||||
Loading…
x
Reference in New Issue
Block a user