Check Notification in window for login feed
This commit is contained in:
parent
f56a6f73f4
commit
c1941754e4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user