mirror of
https://codeberg.org/ashley/poke
synced 2026-03-03 10:53:44 +00:00
use getJson instead of json.parse
This commit is contained in:
@@ -47,7 +47,7 @@ function getJson(str) {
|
||||
const player = await fetch(`${new_api_url}?v=${id}`, headers);
|
||||
var h = await player.text();
|
||||
var j = toJson(h);
|
||||
return JSON.parse(j);
|
||||
return getJson(j);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user