diff options
| author | Henry Jameson <me@hjkos.com> | 2023-11-13 17:40:55 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2023-11-13 17:40:55 +0200 |
| commit | fffa7a4f4a7cb5659e830435508497c073b66160 (patch) | |
| tree | 26473467a51fefda6834f7d0c378984dc5b0501e | |
| parent | e508ca6a1f7d094c61f0717390317b216aaf415e (diff) | |
fix sw thing
| -rw-r--r-- | src/sw.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -69,7 +69,8 @@ self.addEventListener('message', async (event) => { if (type === 'desktopNotificationClose') { const { id, all } = content const search = all ? null : { tag: id } - self.registration.getNotifications(search).forEach(n => n.close()) + const notifications = await self.registration.getNotifications(search) + notifications.forEach(n => n.close()) } if (type === 'updateFocus') { |
