🔥 (register) remove dead code

This commit is contained in:
2020-07-25 14:37:14 +02:00
parent 3981ad42c5
commit 8b52c78322

View File

@@ -9,9 +9,7 @@ if (process.env.NODE_ENV === 'production') {
register(`${process.env.BASE_URL}service-worker.js`, {
ready(sw) {
sw.getNotifications().then((notifs) => {
notifs
// .filter((notif) => notif.tag === 'new-version')
.forEach((notif) => notif.close())
notifs.forEach((notif) => notif.close())
})
console.log('App is being served from cache by a service worker')
setNotificationInstance((title, options?) =>