From 95b1fe3fe51d31a8c1eb10148309be1b0b923582 Mon Sep 17 00:00:00 2001 From: onezplpl Date: Fri, 26 Jul 2024 15:56:19 -0400 Subject: [PATCH] fix caching --- js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 7ed1446..d6878ec 100644 --- a/js/app.js +++ b/js/app.js @@ -5,7 +5,7 @@ let users = {}; let fetchData; async function genTree(treeId) { - fetchData = fetchData || await fetch(`https://corsproxy.io/?https://scratch.mit.edu/projects/${treeId}/remixtree/bare/`) + fetchData = fetchData || await fetch(`https://scratch.mit.edu/projects/${treeId}/remixtree/bare/`) .then(x => x.json()); entries.push(treeId) @@ -24,7 +24,7 @@ async function genTree(treeId) { let doThings = false; async function main() { - let latestData = await fetch("https://corsproxy.io/?https://api.scratch.mit.edu/studios/34493018/projects").then(x => x.json()); + let latestData = await fetch("https://trampoline.turbowarp.org/proxy/studios/34493018/projects").then(x => x.json()); await genTree(latestData[0].id); // latest project await genTree("654605857"); // tree bug here, unavoidable without jank doThings = true;