🐛 (notif update) fix notif update
This commit is contained in:
@@ -24,11 +24,11 @@ if (process.env.NODE_ENV === 'production') {
|
|||||||
register(`${process.env.BASE_URL}service-worker.js`, {
|
register(`${process.env.BASE_URL}service-worker.js`, {
|
||||||
registrationOptions: {},
|
registrationOptions: {},
|
||||||
ready() {
|
ready() {
|
||||||
notif.success('Application mise à jour !')
|
|
||||||
console.log('App is being served from cache by a service worker.')
|
console.log('App is being served from cache by a service worker.')
|
||||||
},
|
},
|
||||||
cached() {
|
cached() {
|
||||||
console.log('Content has been cached for offline use.')
|
console.log('Content has been cached for offline use.')
|
||||||
|
notif.success('Application mise à jour !')
|
||||||
},
|
},
|
||||||
updatefound(reg) {
|
updatefound(reg) {
|
||||||
if (enableNotif) {
|
if (enableNotif) {
|
||||||
@@ -60,6 +60,6 @@ if (process.env.NODE_ENV === 'production') {
|
|||||||
},
|
},
|
||||||
error(error) {
|
error(error) {
|
||||||
console.error('Error during service worker registration:', error)
|
console.error('Error during service worker registration:', error)
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user