Merge pull request #751 from stackernews/fix-title-in-logs
Fix logged title
This commit is contained in:
commit
1f355140f3
|
@ -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…
Reference in New Issue