mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-24 02:06:12 +03:00
fix: push notification click (#643)
This commit is contained in:
parent
861afe79b2
commit
9de4a14b32
1 changed files with 1 additions and 11 deletions
|
@ -19,17 +19,7 @@ export const onPush = (event: PushEvent) => {
|
||||||
preferred_locale,
|
preferred_locale,
|
||||||
} = options
|
} = options
|
||||||
|
|
||||||
let url = 'home'
|
const url = notification_type === 'mention' ? 'notifications/mention' : 'notifications'
|
||||||
if (notification_type) {
|
|
||||||
switch (notification_type) {
|
|
||||||
case 'follow':
|
|
||||||
url = 'notifications'
|
|
||||||
break
|
|
||||||
case 'mention':
|
|
||||||
url = 'notifications/mention'
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
const notificationOptions: NotificationOptions = {
|
const notificationOptions: NotificationOptions = {
|
||||||
badge: '/pwa-192x192.png',
|
badge: '/pwa-192x192.png',
|
||||||
|
|
Loading…
Reference in a new issue