diff --git a/src/components/reload-prompt.tsx b/src/components/reload-prompt.tsx index e97245c45..864ea1136 100644 --- a/src/components/reload-prompt.tsx +++ b/src/components/reload-prompt.tsx @@ -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); },