mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-01 08:37:23 +01:00
use getJson instead of json.parse
This commit is contained in:
parent
9281866018
commit
b69e87393d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue