client/js/shout.js: tag Notifications to reduce spam

This commit is contained in:
William Boman 2015-05-05 01:26:01 +02:00
parent 962bdecf28
commit ba7c7de9af

View File

@ -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();