Skip to content

Commit

Permalink
less debug
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Jul 25, 2023
1 parent 1aa8f13 commit 972340d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/components/PWAIcon.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,8 @@ const PWAIcon = () => {
onOfflineReady: () => {
console.debug('[PWA] onOfflineReady');
},
onNeedRefresh: () => {
console.debug('[PWA] onNeedRefresh');
},
onRegistered: (registration) => {
console.debug('[PWA] onRegistered', registration);
console.debug('[PWA] Service worker registered');

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

0 comments on commit 972340d

Please sign in to comment.