diff options
| author | Mar0xy <marie@kaifa.ch> | 2023-11-01 12:39:07 +0100 |
|---|---|---|
| committer | Mar0xy <marie@kaifa.ch> | 2023-11-01 12:39:07 +0100 |
| commit | 8388b18df9502dfa4b7147ba10c695014e206391 (patch) | |
| tree | b8d1d55f92529efde1536e966191c015c39f54d5 /packages/sw/src/scripts | |
| parent | upd: remove tools from more (diff) | |
| parent | 2023.11.0-beta.7 (diff) | |
| download | sharkey-8388b18df9502dfa4b7147ba10c695014e206391.tar.gz sharkey-8388b18df9502dfa4b7147ba10c695014e206391.tar.bz2 sharkey-8388b18df9502dfa4b7147ba10c695014e206391.zip | |
merge: upstream
Diffstat (limited to 'packages/sw/src/scripts')
| -rw-r--r-- | packages/sw/src/scripts/create-notification.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/sw/src/scripts/create-notification.ts b/packages/sw/src/scripts/create-notification.ts index 0017c1d780..2e1ab719ac 100644 --- a/packages/sw/src/scripts/create-notification.ts +++ b/packages/sw/src/scripts/create-notification.ts @@ -225,6 +225,13 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif data, }]; + case 'test': + return [t('_notification.testNotification'), { + body: t('_notification.notificationWillBeDisplayedLikeThis'), + badge: iconUrl('bell'), + data, + }]; + default: return null; } |