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 Jan 20, 2016
1 parent 962bdec commit ba7c7de
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 @@ -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();
Expand Down

0 comments on commit ba7c7de

Please sign in to comment.