check parse
This commit is contained in:
parent
5f312721b9
commit
6034258c2f
Binary file not shown.
|
@ -47,7 +47,8 @@ const jsonurl = "https://ed.brz9.dev/proj/map/asset/json/db.json"
|
||||||
async function getJson(url) {
|
async function getJson(url) {
|
||||||
let obj = await fetch(url)
|
let obj = await fetch(url)
|
||||||
let txt = await obj.text()
|
let txt = await obj.text()
|
||||||
return txt
|
let json = JSON.parse(txt)
|
||||||
|
return json
|
||||||
}
|
}
|
||||||
|
|
||||||
let db2 = getJson(jsonurl)
|
let db2 = getJson(jsonurl)
|
||||||
|
|
Loading…
Reference in New Issue