fix(router): auto-reload page 8 s after SW update toast is shown

This commit is contained in:
Konrad M.
2026-04-21 21:53:27 +02:00
parent 879485c588
commit 25d2b42ba3
+1
View File
@@ -747,6 +747,7 @@ if ('serviceWorker' in navigator) {
// Modul-Cache leeren damit nächste Navigation frische Module lädt // Modul-Cache leeren damit nächste Navigation frische Module lädt
moduleCache.clear(); moduleCache.clear();
showToast(t('common.updateAvailable'), 'default', 8000); showToast(t('common.updateAvailable'), 'default', 8000);
setTimeout(() => location.reload(), 8000);
} }
}); });
} }