Add test push notification flow

This commit is contained in:
zv
2026-06-11 19:36:23 +02:00
parent 054d75b1f4
commit b945fd4893
8 changed files with 88 additions and 3 deletions

View File

@@ -31,6 +31,10 @@ export function getPushSubscriptions() {
return Array.from(getStore().subscriptions.values());
}
export function getPushSubscription(endpoint: string) {
return getStore().subscriptions.get(endpoint) ?? null;
}
export function hasSentWarning(endpoint: string, warningId: string) {
return getStore().sentWarningIds.get(endpoint)?.has(warningId) ?? false;
}