diff options
Diffstat (limited to 'lib/dmNotifications.ts')
| -rw-r--r-- | lib/dmNotifications.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/dmNotifications.ts b/lib/dmNotifications.ts index 3f229842..afacfe0e 100644 --- a/lib/dmNotifications.ts +++ b/lib/dmNotifications.ts @@ -5,6 +5,10 @@ import { getUser } from "$lib/utils"; import { Relay } from "nostr-tools/relay"; import webpush from "web-push"; +if (config.vapid) { + webpush.setVapidDetails(`mailto:${config.support}`, config.vapid.pk, config.vapid.sk); +} + export const listenForDMs = async () => { try { const relay = await Relay.connect(config.nostr); |
