fallback fetch data
This commit is contained in:
parent
50d69d2155
commit
0bbc4be40b
1 changed files with 2 additions and 2 deletions
|
@ -28,8 +28,8 @@ async function genTree(treeId) {
|
||||||
}
|
}
|
||||||
|
|
||||||
async function main() {
|
async function main() {
|
||||||
// fetchData = await fetch(`https://scratch.mit.edu/projects/${treeID}/remixtree/bare/`).then(x => x.json());
|
fetchData = await fetch(`https://scratch.mit.edu/projects/${treeID}/remixtree/bare/`).then(x => x.json());
|
||||||
fetchData = await fetch(`https://hf.zenoverse.net/tree/`).then(x => x.json());
|
fetchData = fetchData || await fetch(`https://hf.zenoverse.net/tree/`).then(x => x.json());
|
||||||
|
|
||||||
let latestData = await fetch(`https://hf.zenoverse.net/api/`).then(x => x.json());
|
let latestData = await fetch(`https://hf.zenoverse.net/api/`).then(x => x.json());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue