From 7876c14ed77fa4073f913bc3bd36f82cbb278b7e Mon Sep 17 00:00:00 2001 From: Ishu Goyal Date: Fri, 23 Dec 2016 15:46:06 -0800 Subject: [PATCH] change random shuffle parameter --- app/scripts/background.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scripts/background.js b/app/scripts/background.js index 4ca94b9..37feb14 100644 --- a/app/scripts/background.js +++ b/app/scripts/background.js @@ -232,7 +232,7 @@ Player.prototype = { if (this.state.shuffle) { - nextIndex = Utils.random(0, this.trackIds.length - 1); + nextIndex = Utils.random(0, this.trackIds.length); } else {