mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add fallback notification data
This commit is contained in:
parent
4e8a58724e
commit
2cfb367a98
1 changed files with 2 additions and 2 deletions
|
|
@ -132,8 +132,8 @@ export const triggerActions = async (
|
|||
const params = action.params
|
||||
if (params.length > 0) {
|
||||
const param = JSON.parse(params[0]) as NotificationData
|
||||
data.body = param.body
|
||||
data.title = param.title
|
||||
data.body = param.body || data.body
|
||||
data.title = param.title || data.title
|
||||
data.image = param.image || data.image
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue