Remove loading when offline is ready

This commit is contained in:
Maurice Heumann
2025-09-25 21:33:24 +02:00
parent 7abc7dea0e
commit fb7efdaa33

View File

@@ -7,9 +7,12 @@ import Loader from "./Loader";
registerSW({
onNeedRefresh() {
Loader.setLoading(false);
window.location.reload();
},
onOfflineReady() {},
onOfflineReady() {
Loader.setLoading(false);
},
onRegisteredSW(_, registration) {
registration?.addEventListener("updatefound", () => {
Loader.setLoading(true);