Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cgosec authored Mar 30, 2024
1 parent cfdd786 commit cd7247a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions app/static/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2824,14 +2824,13 @@ function parseDataFromJSON(jsonText) {
} catch (error) {
console.log("trying to process data as exported by defender query...")
try {
line = line.replaceAll('""','"').replace('"{', '{').replace('}"', '}')
data = JSON.parse(line)
line_ = line.replaceAll('""','"').replace('"{', '{').replace('}"', '}')
data = JSON.parse(line_)
objects.push(data)
}
catch (error){
console.log("Error processing this line:")
console.log(line)

console.log(line_)
}
}
}
Expand Down

0 comments on commit cd7247a

Please sign in to comment.