diff --git a/src/feed/LoginFeed.js b/src/feed/LoginFeed.js index 49903352b..e085404d9 100644 --- a/src/feed/LoginFeed.js +++ b/src/feed/LoginFeed.js @@ -51,7 +51,7 @@ export default function useLoginFeed() { dispatch(setFollows(pTags)); } - if (Notification.permission === "granted") { + if ("Notification" in window && Notification.permission === "granted") { for (let nx in notifications.filter(a => (a.created_at * 1000) > readNotifications)) { //let n = new Notification(`New reply!`, { body: nx.content, icon: Nostrich }); //console.log(n);