This commit is contained in:
Henry Jameson 2023-10-25 19:35:44 +03:00
parent 73fbe89a4b
commit 1b7e930b2e
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ self.addEventListener('message', async (event) => {
const { title, body, icon, id } = content
if (state.notificationIds.has(id)) return
state.notificationIds.add(id)
setTimeout(() => state.notificationIds.remove(id), 10000)
setTimeout(() => state.notificationIds.delete(id), 10000)
self.registration.showNotification('SWTEST: ' + title, { body, icon })
}