Print complete info of sw registration

This commit is contained in:
Alessio Davoli 2023-07-19 16:40:50 +02:00
parent 27452b23e9
commit c5484536a3

View file

@ -11,6 +11,7 @@
immediate: true, immediate: true,
onRegistered(r) { onRegistered(r) {
console.log(`SW Registered: ${r}`) console.log(`SW Registered: ${r}`)
console.log(JSON.stringify(r));
}, },
onRegisterError(error) { onRegisterError(error) {
console.log('SW registration error', error) console.log('SW registration error', error)