Skip to content

Commit 71aadf1

Browse files
authored
Merge pull request #2 from lukekarrys/lukekarrys-patch-1
fix: use correct variable for shuffle response
2 parents aac16a5 + bee94cd commit 71aadf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/actions/playmode.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function shuffle(player, values) {
2323
let enable = values[0] === "on";
2424
if(values[0] == "toggle") enable = !player.coordinator.state.playMode.shuffle;
2525
return player.coordinator.shuffle(enable).then((response) => {
26-
return { status: 'success', shuffle: mode };
26+
return { status: 'success', shuffle: enable };
2727
});
2828
}
2929

@@ -39,4 +39,4 @@ module.exports = function (api) {
3939
api.registerAction('repeat', repeat);
4040
api.registerAction('shuffle', shuffle);
4141
api.registerAction('crossfade', crossfade);
42-
}
42+
}

0 commit comments

Comments
 (0)