1
0
Fork 0
mirror of https://github.com/Ylianst/MeshCentral.git synced 2025-03-09 15:40:18 +00:00

Fixed MeshMessenger notification title.

This commit is contained in:
Ylian Saint-Hilaire 2021-01-26 12:46:52 -08:00
parent 104f333734
commit 82ef3e8232
2 changed files with 13 additions and 19 deletions

View file

@ -216,11 +216,7 @@
if (Notification) { QV('notifyButton', Notification.permission != 'granted'); }
if (Notification && (windowFocus == false) && (Notification.permission == 'granted')) {
if (notification != null) { notification.close(); notification = null; }
if (args.title) {
notification = new Notification("MeshMessenger" + ' - ' + args.title, { body: msg });
} else {
notification = new Notification("MeshMessenger", { body: msg });
}
notification = new Notification(Q('xtitle').innerHTML.split(' ').join(' '), { body: msg });
}
}