assign the cover url to a const

This commit is contained in:
HorizonCode committed 2024-03-11 15:42:08 +01:00
1 parent d56d4875e0
commit c4d9862860
1 file changed
+4 -5
+4 -5
View File
@@ -104,13 +104,12 @@ function startOsuStatus() {
: " ";
if ("beatmap" in currentStatus.player_status.status) {
const setId = currentStatus.player_status.status.beatmap.set_id;
const coverImage =
`https://assets.ppy.sh/beatmaps/${setId}/covers/[email protected]`;
if (
checkImageExists(
`https://assets.ppy.sh/beatmaps/${setId}/covers/[email protected]`,
)
checkImageExists(coverImage)
) {
largeImageKey =
`https://assets.ppy.sh/beatmaps/${setId}/covers/[email protected]`;
largeImageKey = coverImage;
}
}