aboutsummaryrefslogtreecommitdiff
path: root/src/service-worker.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/service-worker.ts')
-rw-r--r--src/service-worker.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/service-worker.ts b/src/service-worker.ts
index 5684af31..5a82c4b0 100644
--- a/src/service-worker.ts
+++ b/src/service-worker.ts
@@ -119,11 +119,11 @@ sw.addEventListener('push', async (event: PushEvent) => {
(resolve as unknown as () => void)();
setTimeout(
async () =>
- await sw.registration
- .getNotifications()
- .then((notifications) =>
- notifications.forEach((notification) => notification.close())
- ),
+ await sw.registration.getNotifications().then((notifications) =>
+ notifications.forEach((notification) => {
+ notification.close();
+ })
+ ),
10
);
});