feat(sync): Frontend pusht Aenderungen und laedt Server-Stand beim Start
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
787bc1416b
commit
67a3f4b546
4 changed files with 23 additions and 2 deletions
6
app.js
6
app.js
|
|
@ -1230,7 +1230,11 @@ class DienstplanApp {
|
|||
|
||||
// Initialize app when DOM is ready
|
||||
let app;
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
document.addEventListener('DOMContentLoaded', async () => {
|
||||
if (window.DataSync) {
|
||||
try { await window.DataSync.boot(); }
|
||||
catch (e) { console.error('Sync-Boot fehlgeschlagen, App laeuft lokal weiter:', e); }
|
||||
}
|
||||
app = new DienstplanApp();
|
||||
window.app = app;
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue