Fixed chrome extension severity
This commit is contained in:
parent
5ea9edf132
commit
c951999a81
|
@ -106,7 +106,7 @@ function fetchNewEvents(A,B){
|
||||||
|
|
||||||
function parseReplyEvents (reply) {
|
function parseReplyEvents (reply) {
|
||||||
|
|
||||||
// Split the API request
|
// Split the API response
|
||||||
var e_array = reply.split("\n");
|
var e_array = reply.split("\n");
|
||||||
|
|
||||||
// Form a properly object
|
// Form a properly object
|
||||||
|
@ -117,14 +117,14 @@ function parseReplyEvents (reply) {
|
||||||
var event=e_array[i].split(";");
|
var event=e_array[i].split(";");
|
||||||
fetchedEvents.push({
|
fetchedEvents.push({
|
||||||
'id' : event[0],
|
'id' : event[0],
|
||||||
'title' : event[6],
|
|
||||||
'date' : event[5],
|
|
||||||
'agent' : event[2],
|
|
||||||
'agent_name' : event[1],
|
'agent_name' : event[1],
|
||||||
|
'agent' : event[2],
|
||||||
|
'date' : event[5],
|
||||||
|
'title' : event[6],
|
||||||
'module' : event[9],
|
'module' : event[9],
|
||||||
'type' : event[14],
|
'type' : event[14],
|
||||||
'source' : event[17],
|
'source' : event[17],
|
||||||
'severity' : event[19],
|
'severity' : event[28],
|
||||||
'visited' : false
|
'visited' : false
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -142,7 +142,7 @@ function alertsSound(pEvent){
|
||||||
playSound(localStorage["critical"]);
|
playSound(localStorage["critical"]);
|
||||||
break;
|
break;
|
||||||
case "Informational":
|
case "Informational":
|
||||||
playSound(localStorage["critical"]);
|
playSound(localStorage["informational"]);
|
||||||
break;
|
break;
|
||||||
case "Maintenance":
|
case "Maintenance":
|
||||||
playSound(localStorage["maintenance"]);
|
playSound(localStorage["maintenance"]);
|
||||||
|
|
Loading…
Reference in New Issue