Narrow further
Test / test (push) Failing after 53s Details

This commit is contained in:
Jeff 2024-10-13 00:19:25 -04:00
parent 478cd10022
commit cc7faccecc
1 changed files with 12 additions and 1 deletions

View File

@ -119,7 +119,18 @@ export default function start(self: ServiceWorkerGlobalScope) {
message: `Existing subscription ID ${existingSubscriptionId}`,
})
const applicationServerKey = urlB64ToUint8Array(pushPublicKey)
await sendMessage({
message: `pushPublicKey ${pushPublicKey}`,
})
let applicationServerKey
try {
applicationServerKey = urlB64ToUint8Array(pushPublicKey)
} catch (error) {
await sendMessage({
message: `B64 error ${(error as Error).toString()}`,
})
}
await sendMessage({
message: `Converted public key`,