diff options
| author | Henry Jameson <me@hjkos.com> | 2023-10-25 19:35:44 +0300 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2023-10-25 19:35:44 +0300 |
| commit | 1b7e930b2e850408f46876395a85628b05729cc9 (patch) | |
| tree | 654b7d829e283690aad9f560c9264e39e4ce196a /src | |
| parent | 73fbe89a4b4e545796e9cc6aae707de0a4eed3a1 (diff) | |
oops
Diffstat (limited to 'src')
| -rw-r--r-- | src/sw.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 }) } |
