diff options
author | Matjaž Črnko <m.crnko@txt.si> | 2023-11-06 09:37:54 +0100 |
---|---|---|
committer | Matjaž Črnko <m.crnko@txt.si> | 2023-11-06 09:37:54 +0100 |
commit | a0b14adfe269fbf4cf3f31811271b97512ee99c8 (patch) | |
tree | 709b946ca5089ab9a538d158e9d73eeb02647850 | |
parent | 7edda4c1e2afac07c6944424b273ff4b5b0cfec5 (diff) | |
download | trackermap-web-a0b14adfe269fbf4cf3f31811271b97512ee99c8.tar.gz trackermap-web-a0b14adfe269fbf4cf3f31811271b97512ee99c8.tar.bz2 trackermap-web-a0b14adfe269fbf4cf3f31811271b97512ee99c8.zip |
PWA: cleanup
-rw-r--r-- | modern/src/ReloadPrompt.tsx | 5 |
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; |