Fix logged title
This commit is contained in:
parent
75bf4aced9
commit
f450a00073
@ -165,7 +165,7 @@ const mergeAndShowNotification = async (sw, payload, currentNotifications, tag,
|
|||||||
}
|
}
|
||||||
|
|
||||||
const options = { icon: payload.options?.icon, tag, data: { url: '/notifications', ...mergedPayload } }
|
const options = { icon: payload.options?.icon, tag, data: { url: '/notifications', ...mergedPayload } }
|
||||||
log(`[sw:push] ${nid} - show notification with title "${payload.title}"`)
|
log(`[sw:push] ${nid} - show notification with title "${title}"`)
|
||||||
return await sw.registration.showNotification(title, options)
|
return await sw.registration.showNotification(title, options)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user