Skip to content

Commit

Permalink
hey this probably shouldnt use eval() actually
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Aug 24, 2023
1 parent 289a171 commit 961256b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion extensions/gamejolt.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
for (var c = 0; c < a.length; c++) {
a[c] = 0;
}
// eslint-disable-next-line no-redeclare
for (var c = 0; c < b.length * 8; c += 8) {
a[c >> 5] |= (b.charCodeAt(c / 8) & 255) << c % 32;
}
Expand Down Expand Up @@ -337,7 +338,7 @@

switch (sFormat) {
case "json":
pCallback(eval("(" + sResponse + ")").response);
pCallback(JSON.parse(sResponse).response);
break;

case "dump":
Expand Down

0 comments on commit 961256b

Please sign in to comment.