Disable notifications (requires service worker)

This commit is contained in:
Kieran 2023-01-03 14:18:08 +00:00
parent 71327fc77a
commit bc082ec203
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941

View File

@ -53,8 +53,8 @@ export default function useLoginFeed() {
if (Notification.permission === "granted") { if (Notification.permission === "granted") {
for (let nx in notifications.filter(a => (a.created_at * 1000) > readNotifications)) { for (let nx in notifications.filter(a => (a.created_at * 1000) > readNotifications)) {
let n = new Notification(`New reply!`, { body: nx.content, icon: Nostrich }); //let n = new Notification(`New reply!`, { body: nx.content, icon: Nostrich });
console.log(n); //console.log(n);
} }
} }
dispatch(addNotifications(notifications)); dispatch(addNotifications(notifications));