From 4a1aeb7e47c340de524a7db345fb8118eabab9f1 Mon Sep 17 00:00:00 2001 From: Garrett Date: Thu, 28 Sep 2023 13:27:39 -0700 Subject: [PATCH] No eval --- .../src/stories/pages/guided-mode/data/GuidedSourceData.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/renderer/src/stories/pages/guided-mode/data/GuidedSourceData.js b/src/renderer/src/stories/pages/guided-mode/data/GuidedSourceData.js index b8d88218d..d9a147336 100644 --- a/src/renderer/src/stories/pages/guided-mode/data/GuidedSourceData.js +++ b/src/renderer/src/stories/pages/guided-mode/data/GuidedSourceData.js @@ -62,9 +62,7 @@ export class GuidedSourceDataPage extends ManagedPage { interfaces: this.info.globalState.interfaces, }), }) - .then(async (res) => { - return (0, eval)(`(${await res.text()})`); - }) + .then((res) => res.json()) .catch((e) => { Swal.close(); stillFireSwal = false;