diff --git a/src/app/(app)/settings/page.tsx b/src/app/(app)/settings/page.tsx index 1844fd9..106601b 100644 --- a/src/app/(app)/settings/page.tsx +++ b/src/app/(app)/settings/page.tsx @@ -44,7 +44,7 @@ export default function SettingsPage() { const [thresholds, setThresholdsState] = useState(getThresholds); const [notifPermission, setNotifPermission] = useState( - typeof window !== "undefined" && Notification.permission === "granted" + typeof window !== "undefined" && "Notification" in window && Notification.permission === "granted" ); const [pushoverKey, setPushoverKey] = useState("");