mirror of
https://github.com/EFForg/rayhunter.git
synced 2026-04-27 07:59:59 -07:00
web ui: fix issue causing no entries
We weren't correctly handling all possible events from the heuristics list
This commit is contained in:
committed by
Cooper Quintin
parent
9af8e006b0
commit
2080cd7845
@@ -80,10 +80,12 @@ async function updateEntryAnalysisResult(entry) {
|
||||
entry.analysis_result = `0 warnings!`;
|
||||
} else {
|
||||
entry.analysis_result = `!!! ${entry.analysis.warnings.length} warnings !!!`;
|
||||
for(warning of entry.analysis.warnings){
|
||||
msg = `${warning.timestamp}: ${warning.warning.events[1].message}`
|
||||
console.log(msg)
|
||||
entry.analysis_result += `<br>${msg}`
|
||||
for (const warning of entry.analysis.warnings) {
|
||||
for (const event of warning.events) {
|
||||
if (event === null) continue;
|
||||
msg = `${warning.timestamp}: ${event.message}`
|
||||
entry.analysis_result += `<br>${msg}`
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user