refactor: Update characterCards.ts to use hubURL variable for API endpoint

This commit is contained in:
kwaroran
2024-05-14 21:45:25 +09:00
parent a79a00bd00
commit b4d264688a

View File

@@ -933,7 +933,7 @@ export async function downloadRisuHub(id:string) {
type: "wait",
msg: "Downloading..."
})
const res = await fetch("https://realm.risuai.net/api/v1/download/png-v3/" + id + '?cors=true', {
const res = await fetch(hubURL + '/hub/get/' + id, {
headers: {
"x-risu-api-version": "4"
}