mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-03-26 17:52:18 +01:00
fix installed toast
This commit is contained in:
parent
395edf5556
commit
2c3c45991d
@ -12,12 +12,14 @@ export const ReloadPrompt = () => {
|
||||
} = useRegisterSW({
|
||||
onRegistered(r) {
|
||||
console.log("SW Registered: " + r);
|
||||
toast({ variant: "success", title: "Installed" });
|
||||
|
||||
if (r) {
|
||||
setInterval(() => r.update(), intervalMS);
|
||||
}
|
||||
},
|
||||
onOfflineReady() {
|
||||
toast({ status: "success", title: "App Installed", duration: 2000, isClosable: true });
|
||||
},
|
||||
onRegisterError(error) {
|
||||
console.log("SW registration error", error);
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user