mirror of
https://github.com/thelounge/thelounge
synced 2025-02-17 05:38:25 +00:00
client/js/shout.js: tag Notifications to reduce spam
This commit is contained in:
parent
962bdecf28
commit
ba7c7de9af
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue