mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-18 11:13:57 +00:00
Remove loading when offline is ready
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user