🐛 (notif update) fix notif update

This commit is contained in:
Julien Calixte
2020-04-04 20:45:15 +02:00
parent 2e91720e29
commit 25eb522a4e

View File

@@ -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)
}
},
})
}