Add target channel name in notification

This commit is contained in:
Jérémie Astori 2016-02-28 06:36:58 +00:00
parent ce69ce333a
commit 98596b310f

View file

@ -672,7 +672,13 @@ $(function() {
}
favico.badge("!");
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(),
icon: "img/logo-64.png",
tag: target