fix(sw): bump cache versions, add recipes to pre-cache, guard init IIFE

Resolves #72

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ulas Kalayci
2026-04-21 15:41:46 +02:00
parent a253f0a7fa
commit 40252ee0dc
5 changed files with 22 additions and 7 deletions
+9 -2
View File
@@ -858,8 +858,15 @@ if (/iPhone|iPad|iPod/.test(navigator.userAgent)) {
// Initialisierung
// --------------------------------------------------------
(async () => {
await initI18n();
navigate(location.pathname, false);
try {
await initI18n();
navigate(location.pathname, false);
} catch (err) {
console.error('[Router] Initialisierung fehlgeschlagen:', err);
const loading = document.getElementById('app-loading');
if (loading) loading.hidden = true;
renderError(document.getElementById('app'), err);
}
})();
// Globale Exporte