client/js/shout.js: tag Notifications to reduce spam
This commit is contained in:
parent
962bdecf28
commit
ba7c7de9af
@ -612,7 +612,8 @@ $(function() {
|
||||
if (settings.badge && Notification.permission === "granted") {
|
||||
var notify = new Notification(msg.from + " says:", {
|
||||
body: msg.text.trim(),
|
||||
icon: "/img/logo-64.png"
|
||||
icon: "/img/logo-64.png",
|
||||
tag: target
|
||||
});
|
||||
notify.onclick = function() {
|
||||
window.focus();
|
||||
|
Loading…
Reference in New Issue
Block a user