diff --git a/islands/RegisterServiceWorker.tsx b/islands/RegisterServiceWorker.tsx index df34f52..3c4eaf5 100644 --- a/islands/RegisterServiceWorker.tsx +++ b/islands/RegisterServiceWorker.tsx @@ -34,6 +34,7 @@ export default function RegisterServiceWorker() { } try { + if (registration.active === null) return const subscription = await getSubscription() await requestApi('webpush/subscription', 'POST', subscription) } catch (cause) {