Convert subscription to JSON
Test / test (push) Failing after 55s
Details
Test / test (push) Failing after 55s
Details
This commit is contained in:
parent
0c3e6f60b1
commit
4a7d752230
|
|
@ -40,7 +40,7 @@ function EnableButton({ onSubscribe }: { onSubscribe: () => void }) {
|
||||||
try {
|
try {
|
||||||
navigator.serviceWorker.controller?.postMessage({
|
navigator.serviceWorker.controller?.postMessage({
|
||||||
type: "subscribed",
|
type: "subscribed",
|
||||||
subscription,
|
subscription: subscription.toJSON(),
|
||||||
})
|
})
|
||||||
onSubscribe()
|
onSubscribe()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue