fehlersuche controll seite und app.js
This commit is contained in:
+4
-1
@@ -1,6 +1,9 @@
|
||||
// static/js/app.js – MK Control Frontend
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
|
||||
const config = window.mkConfig || {};
|
||||
console.log("app.js verwendet config:", config);
|
||||
console.log('MK Control Frontend geladen');
|
||||
|
||||
// ── Elemente ───────────────────────────────────────────────────────────────
|
||||
@@ -18,7 +21,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||
}
|
||||
|
||||
// ── Config aus Template (von Flask eingebettet) ───────────────────────────
|
||||
const config = window.config || {}; // Sicherstellen, dass config existiert
|
||||
//const config = window.config || {}; // Sicherstellen, dass config existiert
|
||||
|
||||
// ── Connect-Button ────────────────────────────────────────────────────────
|
||||
connectBtn.addEventListener('click', async () => {
|
||||
|
||||
Reference in New Issue
Block a user