1
0
Fork 0
mirror of https://github.com/GuerillaStudio/now-playing synced 2024-11-09 14:11:53 +00:00

fix albums randomizer's algo

This commit is contained in:
Tixie 2019-12-04 03:54:01 +01:00
parent 64ff1d10a0
commit 8ef6617b98

View file

@ -17,7 +17,7 @@ class GoRandomAlbum {
}
getRandomUrl() {
const index = Math.floor(Math.random()*(this.urls.length+1));
const index = Math.floor(Math.random()*(this.urls.length));
window.location.href = this.urls[index]
}
}