Log on service worker end
Test / test (push) Failing after 54s Details

This commit is contained in:
Jeff 2024-10-14 15:11:18 -04:00
parent 4f0e68be41
commit f3e3077374
1 changed files with 8 additions and 0 deletions

View File

@ -169,6 +169,14 @@ export default function start(self: ServiceWorkerGlobalScope) {
message: `URL ${process.env.BASE_URL}/api/subscription/`,
})
await sendMessage({
message: `Submitting subscription ${subscription}`,
})
await sendMessage({
message: `JSON formatted: ${JSON.stringify(subscription)}`,
})
const response = await fetch(
`${process.env.BASE_URL}/api/subscription/`,
{