Merge pull request #418 from williamboman/patch-2

client/js/shout.js: tag Notifications to reduce notification spam
This commit is contained in:
Mattias Erming 2016-01-24 17:41:38 +01:00
commit 9aaf9348da

View File

@ -656,7 +656,8 @@ $(function() {
if (settings.badge && Notification.permission === "granted") { if (settings.badge && Notification.permission === "granted") {
var notify = new Notification(msg.from + " says:", { var notify = new Notification(msg.from + " says:", {
body: msg.text.trim(), body: msg.text.trim(),
icon: "/img/logo-64.png" icon: "/img/logo-64.png",
tag: target
}); });
notify.onclick = function() { notify.onclick = function() {
window.focus(); window.focus();