assign the cover url to a const
This commit is contained in:
parent
d56d4875e0
commit
c4d9862860
9
main.js
9
main.js
|
@ -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/list@2x.jpg`;
|
||||
if (
|
||||
checkImageExists(
|
||||
`https://assets.ppy.sh/beatmaps/${setId}/covers/list@2x.jpg`,
|
||||
)
|
||||
checkImageExists(coverImage)
|
||||
) {
|
||||
largeImageKey =
|
||||
`https://assets.ppy.sh/beatmaps/${setId}/covers/list@2x.jpg`;
|
||||
largeImageKey = coverImage;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user