diff --git a/src/pages/Layout.js b/src/pages/Layout.js index 22c76d51..60946f8d 100644 --- a/src/pages/Layout.js +++ b/src/pages/Layout.js @@ -37,7 +37,7 @@ export default function Layout(props) { async function goToNotifications(e) { e.stopPropagation(); // request permissions to send notifications - if (Notification.permission !== "granted") { + if ("Notification" in window && Notification.permission !== "granted") { try { let res = await Notification.requestPermission(); console.debug(res);