From 1b7e930b2e850408f46876395a85628b05729cc9 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Wed, 25 Oct 2023 19:35:44 +0300 Subject: [PATCH] oops --- src/sw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sw.js b/src/sw.js index 7fd08c4a..1889d15f 100644 --- a/src/sw.js +++ b/src/sw.js @@ -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 }) }