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:
parent
2e05067ce0
commit
f69a36f2f0
1 changed files with 1 additions and 0 deletions
1
app.js
1
app.js
|
|
@ -1116,4 +1116,5 @@ class DienstplanApp {
|
|||
let app;
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
app = new DienstplanApp();
|
||||
window.app = app;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue