🐛 (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`, {
|
||||
registrationOptions: {},
|
||||
ready() {
|
||||
notif.success('Application mise à jour !')
|
||||
console.log('App is being served from cache by a service worker.')
|
||||
},
|
||||
cached() {
|
||||
console.log('Content has been cached for offline use.')
|
||||
notif.success('Application mise à jour !')
|
||||
},
|
||||
updatefound(reg) {
|
||||
if (enableNotif) {
|
||||
@@ -60,6 +60,6 @@ if (process.env.NODE_ENV === 'production') {
|
||||
},
|
||||
error(error) {
|
||||
console.error('Error during service worker registration:', error)
|
||||
}
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user