From ba7c7de9af1bfdcab16a3881ba92d715660ed693 Mon Sep 17 00:00:00 2001 From: William Boman Date: Tue, 5 May 2015 01:26:01 +0200 Subject: [PATCH] client/js/shout.js: tag Notifications to reduce spam --- client/js/shout.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/js/shout.js b/client/js/shout.js index 46a15ef4..8c42b739 100644 --- a/client/js/shout.js +++ b/client/js/shout.js @@ -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();