From e13522eacf0a75bfb032fa29f243c61b50111ea1 Mon Sep 17 00:00:00 2001 From: Ethan O'Brien <77750390+ethanaobrien@users.noreply.github.com> Date: Sun, 15 Dec 2024 08:57:59 -0600 Subject: [PATCH] Add another check on response data --- data/src/emulator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/src/emulator.js b/data/src/emulator.js index 43eb43d..44ae232 100644 --- a/data/src/emulator.js +++ b/data/src/emulator.js @@ -560,7 +560,7 @@ class EmulatorJS { } const report = "cores/reports/" + this.getCore() + ".json"; this.downloadFile(report, (rep) => { - if (rep === -1 || typeof rep === "string") { + if (rep === -1 || typeof rep === "string" || typeof rep.data === "string") { rep = {}; } else { rep = rep.data;