✨ (notification) remove all notif on reload
This commit is contained in:
@@ -8,7 +8,7 @@ if (process.env.NODE_ENV === 'production') {
|
|||||||
ready(sw) {
|
ready(sw) {
|
||||||
sw.getNotifications().then((notifs) => {
|
sw.getNotifications().then((notifs) => {
|
||||||
notifs
|
notifs
|
||||||
.filter((notif) => notif.tag === 'new-version')
|
// .filter((notif) => notif.tag === 'new-version')
|
||||||
.forEach((notif) => notif.close())
|
.forEach((notif) => notif.close())
|
||||||
})
|
})
|
||||||
console.log('App is being served from cache by a service worker')
|
console.log('App is being served from cache by a service worker')
|
||||||
|
|||||||
Reference in New Issue
Block a user