fix: notification badge

This commit is contained in:
Kieran 2023-10-20 13:46:37 +01:00
parent 083f8a9edb
commit 548247f39c
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -174,7 +174,7 @@ function makeNotification(n: PushNotification) {
return { return {
body: body(), body: body(),
icon: evx.author.avatar ?? defaultAvatar(evx.author.pubkey), icon: evx.author.avatar ?? defaultAvatar(evx.author.pubkey),
badge: CONFIG.appleTouchIconUrl, badge: `${location.protocol}//${location.hostname}${CONFIG.appleTouchIconUrl}`,
timestamp: evx.created_at * 1000, timestamp: evx.created_at * 1000,
tag: evx.id, tag: evx.id,
data: JSON.stringify(n), data: JSON.stringify(n),