Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
client/js/shout.js: tag Notifications to reduce spam
Browse files Browse the repository at this point in the history
  • Loading branch information
williamboman committed May 4, 2015
1 parent 2cee0ea commit fc6e62e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client/js/shout.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,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();
Expand Down

0 comments on commit fc6e62e

Please sign in to comment.