16 lines
457 B
JavaScript
16 lines
457 B
JavaScript
// static/js/config.js – Konfiguration & globale Daten
|
||
|
||
let config = {};
|
||
let globalSounds = [];
|
||
|
||
function initConfig() {
|
||
// Diese Werte werden in control.html per Jinja gesetzt
|
||
config = window.mkConfig || {};
|
||
globalSounds = window.mkGlobalSounds || [];
|
||
|
||
console.log("config.js → Config geladen:", config);
|
||
console.log("config.js → Globale Sounds:", globalSounds);
|
||
}
|
||
|
||
// Export (für andere Module)
|
||
window.initConfig = initConfig; |