mirror of
https://github.com/GuerillaStudio/now-playing
synced 2024-11-17 13:11:52 +00:00
fix albums randomizer's algo
This commit is contained in:
parent
64ff1d10a0
commit
8ef6617b98
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue