frontend: use the new set of icons for notification
This commit is contained in:
parent
19bd8cca0d
commit
e57ff1be8d
5 changed files with 6 additions and 6 deletions
|
@ -187,7 +187,7 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
|
|||
maxTimeSeen = event.time;
|
||||
|
||||
if ($rootScope.notify_field != 0) {
|
||||
var notification = new Notification("Challenge forensic", {body: event.txt.replace(/(<([^>]+)>)/ig,""), icon: "/favicon.ico"});
|
||||
var notification = new Notification("Challenge forensic", {body: event.txt.replace(/&#(\d+);/g, function(match, dec) {return String.fromCharCode(dec);}).replace(/(<([^>]+)>)/ig,""), badge: "/img/icon-" + event.kind + ".ico", icon: "/img/icon-" + event.kind + ".ico"});
|
||||
notification.onclick = function(ev) {
|
||||
$location.url("/edit");
|
||||
};
|
||||
|
|
Reference in a new issue