next fix for app.js
This commit is contained in:
@@ -167,12 +167,11 @@
|
||||
|
||||
{% block scripts %}
|
||||
<script>
|
||||
// Config + globale Sounds direkt ins JS übergeben
|
||||
const config = {{ config | tojson | safe }};
|
||||
const globalSounds = {{ global_sounds | tojson | safe }};
|
||||
window.mkConfig = config; // falls du es global brauchst
|
||||
// Config + globale Sounds global verfügbar machen
|
||||
window.mkConfig = {{ config | tojson | safe }};
|
||||
window.mkGlobalSounds = {{ global_sounds | tojson | safe }};
|
||||
|
||||
console.log("Config im JS:", config);
|
||||
console.log("Globale Sounds:", globalSounds);
|
||||
console.log("window.mkConfig gesetzt:", window.mkConfig);
|
||||
console.log("window.mkGlobalSounds:", window.mkGlobalSounds);
|
||||
</script>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user