logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://hacktivis.me/git/pleroma-fe.git
commit: fffa7a4f4a7cb5659e830435508497c073b66160
parent e508ca6a1f7d094c61f0717390317b216aaf415e
Author: Henry Jameson <me@hjkos.com>
Date:   Mon, 13 Nov 2023 17:40:55 +0200

fix sw thing

Diffstat:

Msrc/sw.js3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/sw.js b/src/sw.js @@ -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') {