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.
This commit is contained in:
Kenearos 2026-05-12 18:41:07 +02:00
parent 2e05067ce0
commit f69a36f2f0

1
app.js
View file

@ -1116,4 +1116,5 @@ class DienstplanApp {
let app;
document.addEventListener('DOMContentLoaded', () => {
app = new DienstplanApp();
window.app = app;
});