Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Actually return the stored playlist if there was one saved, instead o…

…f returning directly without waiting for the callback.
  • Loading branch information...
commit a8576a68e03970d4322f975f94ca6598bfa867ac 1 parent 95f6c37
Joakim Bodin authored
Showing with 2 additions and 4 deletions.
  1. +2 −4 spapp/resources/js/kontroll.js
View
6 spapp/resources/js/kontroll.js
@@ -258,10 +258,8 @@ var kontroll = {
var playlistUri = localStorage.getItem("selectedPlaylist");
if (playlistUri)
{
- kontroll.models.Playlist.fromURI(playlistUri, function(playlist)
- {
- return playlist;
- });
+ var playlist = kontroll.models.Playlist.fromURI(playlistUri);
+ return playlist;
}
else
{
Please sign in to comment.
Something went wrong with that request. Please try again.