Update index.tsx
This commit is contained in:
parent
45b9a9c8e6
commit
0ba2694f01
1 changed files with 5 additions and 4 deletions
|
|
@ -98,10 +98,11 @@ export default defineCorePlugin({
|
|||
}
|
||||
|
||||
const [badgesRes, rolesRes] = await Promise.all([
|
||||
fetch("https://codeberg.org/api/v1/repos/chocomint-chan/GoonCord_Badges/raw/badges.json?ref=main")
|
||||
.catch((e) => { console.error("[bunny.badges] badges fetch failed:", e); return null; }),
|
||||
fetch("https://codeberg.org/api/v1/repos/chocomint-chan/GoonCord_Badges/raw/assets/roles/roles.json?ref=main")
|
||||
.catch((e) => { console.error("[bunny.badges] roles fetch failed:", e); return null; }),
|
||||
fetch("https://raw.githubusercontent.com/chocomint-chan/GoonCord_Badges/main/badges.json")
|
||||
.catch((e) => { console.error("[bunny.badges] badges fetch failed:", e); return null; }),
|
||||
fetch("https://raw.githubusercontent.com/chocomint-chan/GoonCord_Badges/main/assets/roles/roles.json")
|
||||
.catch((e) => { console.error("[bunny.badges] roles fetch failed:", e); return null; }),
|
||||
|
||||
]);
|
||||
|
||||
if (badgesRes && !badgesRes.ok) console.error("[bunny.badges] badges HTTP error:", badgesRes.status);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue