Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Jul 25, 2023
1 parent 44e9eb5 commit 127ac86
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/components/PWAIcon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ const PWAIcon = () => {
needRefresh: [needRefresh, setNeedRefresh],
updateServiceWorker,
} = useRegisterSW({
onOfflineReady: () => {
console.debug('[PWA] onOfflineReady');
},
onNeedRefresh: () => {
console.debug('[PWA] onNeedRefresh');
},
onRegistered: (registration) => {
console.debug('[PWA] onRegistered', registration);

Expand All @@ -24,8 +30,11 @@ const PWAIcon = () => {
}, intervalMS);
}
},
onRegisteredSW() {
console.debug('[PWA] onRegisteredSW', ...arguments); // eslint-disable-line prefer-rest-params
},
onRegisterError: (error) => {
console.log('onRegisterError', error);
console.debug('[PWA] onRegisterError', error);
},
});
const [installing, setInstalling] = useState(false);
Expand Down

0 comments on commit 127ac86

Please sign in to comment.