Add more log
Test / test (push) Failing after 30s
Details
Test / test (push) Failing after 30s
Details
This commit is contained in:
parent
a07f028b75
commit
b92750e5d5
|
|
@ -49,9 +49,12 @@ function EnableButton({ onSubscribe }: { onSubscribe: () => void }) {
|
|||
`subscriptions: ${JSON.stringify(subscription.toJSON())}`,
|
||||
])
|
||||
try {
|
||||
navigator.serviceWorker.controller?.postMessage({
|
||||
type: "subscribed",
|
||||
subscription: subscription.toJSON(),
|
||||
navigator.serviceWorker.ready.then((registration) => {
|
||||
registration.active?.postMessage({
|
||||
type: "subscribed",
|
||||
subscription: subscription.toJSON(),
|
||||
})
|
||||
setLog((prev) => [...prev, "After post message"])
|
||||
})
|
||||
// onSubscribe()
|
||||
} catch (error) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue