From cd7247ae3bdcbf5e34f995f44341bfbae521489b Mon Sep 17 00:00:00 2001 From: cgosec <147876916+cgosec@users.noreply.github.com> Date: Sat, 30 Mar 2024 23:35:59 +0100 Subject: [PATCH] Update script.js --- app/static/js/script.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/static/js/script.js b/app/static/js/script.js index 153151f..f32c6c9 100644 --- a/app/static/js/script.js +++ b/app/static/js/script.js @@ -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_) } } }