diff --git a/app/routes/_index.tsx b/app/routes/_index.tsx index 0414972..2583754 100644 --- a/app/routes/_index.tsx +++ b/app/routes/_index.tsx @@ -78,6 +78,9 @@ function EnableButton({ onSubscribe }: { onSubscribe: () => void }) { async function subscribe() { console.log("Hey the thing was clicked wow") + await new Promise((resolve) => + window.Notification.requestPermission(resolve) + ) subscribeToPush("Derpderp", (subscription) => { fetch("/subscribe", { method: "POST",