fix(router): auto-reload page 8 s after SW update toast is shown
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user