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
1 changed files with 2 additions and 1 deletions

View File

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