Merge pull request #751 from stackernews/fix-title-in-logs

Fix logged title
This commit is contained in:
Keyan 2024-01-16 15:18:02 -06:00 committed by GitHub
commit 1f355140f3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ const mergeAndShowNotification = async (sw, payload, currentNotifications, tag,
}
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)
}