🐛 (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`, { 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)
} },
}) })
} }