use getJson instead of json.parse

This commit is contained in:
Ashley 2022-12-20 10:57:23 +00:00
parent 9281866018
commit b69e87393d

View file

@ -47,7 +47,7 @@ function getJson(str) {
const player = await fetch(`${new_api_url}?v=${id}`, headers); const player = await fetch(`${new_api_url}?v=${id}`, headers);
var h = await player.text(); var h = await player.text();
var j = toJson(h); var j = toJson(h);
return JSON.parse(j); return getJson(j);
} }
/* /*