diff --git a/app/routes/_index.tsx b/app/routes/_index.tsx index 4d25ada..dfa7a1f 100644 --- a/app/routes/_index.tsx +++ b/app/routes/_index.tsx @@ -106,7 +106,7 @@ function TackUpNow({ {() => ( <> {messages.map((message, index) => ( -
JSON.stringify(message)
+
{JSON.stringify(message)}
))} {isInstalled ? (
Your Notifications
diff --git a/app/worker.ts b/app/worker.ts index 254bb67..40c5981 100644 --- a/app/worker.ts +++ b/app/worker.ts @@ -52,6 +52,10 @@ export default function start(self: ServiceWorkerGlobalScope) { const waitEvent = event as ExtendableEvent waitEvent.waitUntil( (async () => { + await sendMessage({ + message: "Got message", + }) + if ( "type" in event && event.type === "subscribed" &&