summaryrefslogtreecommitdiff
path: root/packages/sw/src/scripts
diff options
context:
space:
mode:
authorMar0xy <marie@kaifa.ch>2023-11-01 12:39:07 +0100
committerMar0xy <marie@kaifa.ch>2023-11-01 12:39:07 +0100
commit8388b18df9502dfa4b7147ba10c695014e206391 (patch)
treeb8d1d55f92529efde1536e966191c015c39f54d5 /packages/sw/src/scripts
parentupd: remove tools from more (diff)
parent2023.11.0-beta.7 (diff)
downloadsharkey-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.ts7
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;
}