forked from Kieran/snort
fix: notification badge
This commit is contained in:
parent
083f8a9edb
commit
548247f39c
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user