aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modern/src/ReloadPrompt.tsx5
1 files changed, 2 insertions, 3 deletions
diff --git a/modern/src/ReloadPrompt.tsx b/modern/src/ReloadPrompt.tsx
index 371d95db..05ebfaf3 100644
--- a/modern/src/ReloadPrompt.tsx
+++ b/modern/src/ReloadPrompt.tsx
@@ -11,8 +11,7 @@ function ReloadPrompt() {
const serviceWorkerUpdateInterval = useAttributePreference('serviceWorkerUpdateInterval', 3600000);
const {
- offlineReady: [offlineReady, setOfflineReady],
- needRefresh: [needRefresh, setNeedRefresh],
+ needRefresh: [needRefresh],
updateServiceWorker,
} = useRegisterSW({
onRegisteredSW(swUrl, r) {
@@ -53,4 +52,4 @@ function ReloadPrompt() {
);
}
-export default ReloadPrompt; \ No newline at end of file
+export default ReloadPrompt;