Skip to content

Commit

Permalink
Fixed "previous" key down event issue
Browse files Browse the repository at this point in the history
  • Loading branch information
danpastori committed Jul 18, 2019
1 parent 2372f3a commit 69dde76
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions dist/amplitude.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/amplitude.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/amplitude.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "amplitudejs",
"version": "5.0.1",
"version": "5.0.2",
"description": "A JavaScript library that allows you to control the design of your media controls in your webpage -- not the browser. No dependencies (jQuery not required) https://521dimensions.com/open-source/amplitudejs",
"main": "dist/amplitude.js",
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/events/keydown.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ let KeyDown = (function() {
or null and set the previous song.
*/
if (config.active_playlist == "" || config.active_playlist == null) {
AudioNavigation.setPrev();
AudioNavigation.setPrevious();
} else {
AudioNavigation.setPrevPlaylist(config.active_playlist);
AudioNavigation.setPreviousPlaylist(config.active_playlist);
}
}

Expand Down

0 comments on commit 69dde76

Please sign in to comment.