mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2026-02-06 11:17:36 +00:00
Add another check on response data
This commit is contained in:
parent
b4a06cef6c
commit
e13522eacf
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user