From f69a36f2f0b8d8df1ea372d049f3708bff6a1473 Mon Sep 17 00:00:00 2001 From: Kenearos Date: Tue, 12 May 2026 18:41:07 +0200 Subject: [PATCH] fix(app): expose app instance on window so image-import.js init finds it `let app` at top level does not create a window property, so the DOMContentLoaded handler in image-import.js found window.app undefined and never instantiated window.imageImporter. Clicking the Bild-Import button then showed the 'Bild-Import nicht verfuegbar' toast. Set window.app explicitly after construction. --- app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app.js b/app.js index b0aceba..66d6d5f 100644 --- a/app.js +++ b/app.js @@ -1116,4 +1116,5 @@ class DienstplanApp { let app; document.addEventListener('DOMContentLoaded', () => { app = new DienstplanApp(); + window.app = app; });