Add target channel name in notification
This commit is contained in:
parent
ce69ce333a
commit
98596b310f
@ -672,7 +672,13 @@ $(function() {
|
|||||||
}
|
}
|
||||||
favico.badge("!");
|
favico.badge("!");
|
||||||
if (options.badge && Notification.permission === "granted") {
|
if (options.badge && Notification.permission === "granted") {
|
||||||
var notify = new Notification(msg.from + " says:", {
|
var title = msg.from;
|
||||||
|
if (!isQuery) {
|
||||||
|
title += " (" + button.text().trim() + ")";
|
||||||
|
}
|
||||||
|
title += " says:";
|
||||||
|
|
||||||
|
var notify = new Notification(title, {
|
||||||
body: msg.text.trim(),
|
body: msg.text.trim(),
|
||||||
icon: "img/logo-64.png",
|
icon: "img/logo-64.png",
|
||||||
tag: target
|
tag: target
|
||||||
|
Loading…
Reference in New Issue
Block a user