forked from Kieran/snort
Disable notifications (requires service worker)
This commit is contained in:
parent
71327fc77a
commit
bc082ec203
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user