Fix cover art being wrong?
This commit is contained in:
parent
7f9bb3fe83
commit
ed6a3629ca
@ -10,11 +10,7 @@ const BEATSAVER_MAP_API =
|
|||||||
const KEY = "BS_MAP_DATA_";
|
const KEY = "BS_MAP_DATA_";
|
||||||
|
|
||||||
function getLatestMapArt(data: BeatSaverMapData) {
|
function getLatestMapArt(data: BeatSaverMapData) {
|
||||||
let url: string | undefined = undefined;
|
return data.versions[data.versions.length - 1].coverURL;
|
||||||
for (const version of data.versions) {
|
|
||||||
url = version.coverURL;
|
|
||||||
}
|
|
||||||
return url;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type MapData = {
|
type MapData = {
|
||||||
|
Reference in New Issue
Block a user