Fix Notifications
This commit is contained in:
parent
ce78a9d403
commit
110f9fe9aa
@ -5161,7 +5161,7 @@
|
|||||||
if (!Header.areNotificationsEnabled) {
|
if (!Header.areNotificationsEnabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
notif = new Notice('Quick reply warning', {
|
notif = new Notification(el.textContent, {
|
||||||
body: el.textContent,
|
body: el.textContent,
|
||||||
icon: Favicon.logo
|
icon: Favicon.logo
|
||||||
});
|
});
|
||||||
@ -8541,7 +8541,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
name = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', post.nodes.info).textContent.trim();
|
name = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', post.nodes.info).textContent.trim();
|
||||||
notif = new Notice("" + name + " replied to you", {
|
notif = new Notification("" + name + " replied to you", {
|
||||||
body: post.info.comment,
|
body: post.info.comment,
|
||||||
icon: Favicon.logo
|
icon: Favicon.logo
|
||||||
});
|
});
|
||||||
|
|||||||
@ -5164,7 +5164,7 @@
|
|||||||
if (!Header.areNotificationsEnabled) {
|
if (!Header.areNotificationsEnabled) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
notif = new Notice('Quick reply warning', {
|
notif = new Notification(el.textContent, {
|
||||||
body: el.textContent,
|
body: el.textContent,
|
||||||
icon: Favicon.logo
|
icon: Favicon.logo
|
||||||
});
|
});
|
||||||
@ -8526,7 +8526,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
name = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', post.nodes.info).textContent.trim();
|
name = Conf['Anonymize'] ? 'Anonymous' : $('.nameBlock', post.nodes.info).textContent.trim();
|
||||||
notif = new Notice("" + name + " replied to you", {
|
notif = new Notification("" + name + " replied to you", {
|
||||||
body: post.info.comment,
|
body: post.info.comment,
|
||||||
icon: Favicon.logo
|
icon: Favicon.logo
|
||||||
});
|
});
|
||||||
|
|||||||
@ -100,7 +100,7 @@ Unread =
|
|||||||
'Anonymous'
|
'Anonymous'
|
||||||
else
|
else
|
||||||
$('.nameBlock', post.nodes.info).textContent.trim()
|
$('.nameBlock', post.nodes.info).textContent.trim()
|
||||||
notif = new Notice "#{name} replied to you",
|
notif = new Notification "#{name} replied to you",
|
||||||
body: post.info.comment
|
body: post.info.comment
|
||||||
icon: Favicon.logo
|
icon: Favicon.logo
|
||||||
notif.onclick = ->
|
notif.onclick = ->
|
||||||
|
|||||||
@ -154,7 +154,7 @@ QR =
|
|||||||
notice = new Notice 'warning', el
|
notice = new Notice 'warning', el
|
||||||
QR.notifications.push notice
|
QR.notifications.push notice
|
||||||
return unless Header.areNotificationsEnabled
|
return unless Header.areNotificationsEnabled
|
||||||
notif = new Notice 'Quick reply warning',
|
notif = new Notification el.textContent,
|
||||||
body: el.textContent
|
body: el.textContent
|
||||||
icon: Favicon.logo
|
icon: Favicon.logo
|
||||||
notif.onclick = -> window.focus()
|
notif.onclick = -> window.focus()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user