Even more logs
Test / test (push) Failing after 56s Details

This commit is contained in:
Jeff 2024-10-13 00:16:01 -04:00
parent 5b5c8fa847
commit 478cd10022
1 changed files with 8 additions and 0 deletions

View File

@ -120,11 +120,19 @@ export default function start(self: ServiceWorkerGlobalScope) {
})
const applicationServerKey = urlB64ToUint8Array(pushPublicKey)
await sendMessage({
message: `Converted public key`,
})
const newSubscription = await registration.pushManager.subscribe({
userVisibleOnly: true,
applicationServerKey: applicationServerKey,
})
await sendMessage({
message: `subscribed via pushManager`,
})
const stupid =
existingSubscriptionId === undefined
? postSubscription(newSubscription, db)