oops
This commit is contained in:
parent
73fbe89a4b
commit
1b7e930b2e
|
@ -62,7 +62,7 @@ self.addEventListener('message', async (event) => {
|
||||||
const { title, body, icon, id } = content
|
const { title, body, icon, id } = content
|
||||||
if (state.notificationIds.has(id)) return
|
if (state.notificationIds.has(id)) return
|
||||||
state.notificationIds.add(id)
|
state.notificationIds.add(id)
|
||||||
setTimeout(() => state.notificationIds.remove(id), 10000)
|
setTimeout(() => state.notificationIds.delete(id), 10000)
|
||||||
self.registration.showNotification('SWTEST: ' + title, { body, icon })
|
self.registration.showNotification('SWTEST: ' + title, { body, icon })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue