From 9400dc558010b7ed2cd190b0bae8006f0f71a855 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 18 Sep 2021 22:23:06 +0900 Subject: [PATCH] fix --- src/client/sw/create-notification.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/sw/create-notification.ts b/src/client/sw/create-notification.ts index f8663dfdf8..23eb2b9817 100644 --- a/src/client/sw/create-notification.ts +++ b/src/client/sw/create-notification.ts @@ -163,8 +163,8 @@ async function composeNotification(data: pushNotificationData): Promise<[string, }]; case 'app': - return [body.header || body.body , { - body: body.header ? body.body : undefined, + return [body.header, { + body: body.body, icon: body.icon, data }];