This commit is contained in:
parent
e9616c8d4c
commit
375820c945
@ -34,8 +34,6 @@
|
|||||||
$: ssCoverUrl = hash ? `${SS_CDN_HOST}/covers/${encodeURIComponent(hash.toUpperCase())}.png` : null;
|
$: ssCoverUrl = hash ? `${SS_CDN_HOST}/covers/${encodeURIComponent(hash.toUpperCase())}.png` : null;
|
||||||
$: beatSaverCoverUrl = leaderboard?.beatMaps?.versions?.[0]?.coverURL ?? null;
|
$: beatSaverCoverUrl = leaderboard?.beatMaps?.versions?.[0]?.coverURL ?? null;
|
||||||
|
|
||||||
console.log(leaderboard)
|
|
||||||
|
|
||||||
$: preloadImages([{url: ssCoverUrl, priority: 10}, {url: beatSaverCoverUrl, priority: 15}]);
|
$: preloadImages([{url: ssCoverUrl, priority: 10}, {url: beatSaverCoverUrl, priority: 15}]);
|
||||||
|
|
||||||
$: coverUrl = loadedImages.length ? (loadedImages.sort((a, b) => a?.priority - b?.priority))[0].url : DEFAULT_IMG;
|
$: coverUrl = loadedImages.length ? (loadedImages.sort((a, b) => a?.priority - b?.priority))[0].url : DEFAULT_IMG;
|
||||||
|
@ -78,7 +78,6 @@ const setCacheIfNeeded = (response, cacheKey, cacheTtl) => {
|
|||||||
|
|
||||||
export async function fetchUrl(url, options = {}, cors = true) {
|
export async function fetchUrl(url, options = {}, cors = true) {
|
||||||
try {
|
try {
|
||||||
console.log(ssrConfig.name);
|
|
||||||
const response = await fetch(url, {
|
const response = await fetch(url, {
|
||||||
...options,
|
...options,
|
||||||
headers: {
|
headers: {
|
||||||
|
Reference in New Issue
Block a user