Merge pull request #418 from williamboman/patch-2
client/js/shout.js: tag Notifications to reduce notification spam
This commit is contained in:
commit
9aaf9348da
@ -656,7 +656,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