diff --git a/src/components/Player/Scores.svelte b/src/components/Player/Scores.svelte index ec05f67..c706ef7 100644 --- a/src/components/Player/Scores.svelte +++ b/src/components/Player/Scores.svelte @@ -1,13 +1,13 @@ diff --git a/src/components/Player/utils/profile.js b/src/components/Player/utils/profile.js index e8d58f9..fad6112 100644 --- a/src/components/Player/utils/profile.js +++ b/src/components/Player/utils/profile.js @@ -1,3 +1,4 @@ +import { SS_CDN_HOST } from "../../../network/queues/scoresaber/page-queue"; import tweened from "../../../svelte-utils/tweened"; import { opt } from "../../../utils/js"; @@ -170,7 +171,7 @@ function updateSsBadges(playerData) { if (!opt(playerData, "playerInfo.badges.length")) return null; return playerData.playerInfo.badges.map((b) => ({ - src: `https://cdn.scoresaber.com/badges/${b.image}`, + src: `${SS_CDN_HOST}/badges/${b.image}`, title: b.description, })); } diff --git a/src/network/queues/scoresaber/page-queue.js b/src/network/queues/scoresaber/page-queue.js index ed097e5..5d1233d 100644 --- a/src/network/queues/scoresaber/page-queue.js +++ b/src/network/queues/scoresaber/page-queue.js @@ -8,6 +8,7 @@ import { extractDiffAndType } from "../../../utils/scoresaber/format"; import { PRIORITY, default as createQueue } from "../http-queue"; export const SS_HOST = "https://scoresaber.com"; +export const SS_CDN_HOST = "https://cdn.scoresaber.com"; const SS_CORS_HOST = `${ssrConfig.proxy}/${SS_HOST}`; const RANKEDS_URL = SS_CORS_HOST +