From 4a7d752230ae179c61742a7a2b3a2ed62fb6b659 Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 12 Oct 2024 14:07:13 -0400 Subject: [PATCH] Convert subscription to JSON --- app/install/EnableNotifications.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/install/EnableNotifications.tsx b/app/install/EnableNotifications.tsx index cf9b4e8..6e6800c 100644 --- a/app/install/EnableNotifications.tsx +++ b/app/install/EnableNotifications.tsx @@ -40,7 +40,7 @@ function EnableButton({ onSubscribe }: { onSubscribe: () => void }) { try { navigator.serviceWorker.controller?.postMessage({ type: "subscribed", - subscription, + subscription: subscription.toJSON(), }) onSubscribe() } catch (error) {