🐛 (notification) try catch notification
This commit is contained in:
@@ -4,11 +4,12 @@ import { register } from 'register-service-worker'
|
||||
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
register(`${process.env.BASE_URL}service-worker.js`, {
|
||||
ready() {
|
||||
ready(sw) {
|
||||
console.log(
|
||||
'App is being served from cache by a service worker.\n' +
|
||||
'For more details, visit https://goo.gl/AFskqB'
|
||||
)
|
||||
sw.showNotification('Coucou')
|
||||
},
|
||||
registered() {
|
||||
console.log('Service worker has been registered.')
|
||||
|
||||
Reference in New Issue
Block a user