Commit d7b847d9 authored by Simon Daron's avatar Simon Daron
Browse files

Debug player, playlist wasn't saved anymore

parent d666242d
......@@ -39,6 +39,7 @@
this.element.append(this.debugContainer);
this.playlist = this.options.playlist;
this.buildPlaylistControls();
this.loadPlaylist();
this._update();
this.options.onLoad(this);
},
......@@ -66,6 +67,7 @@
this._update();
},
savePlaylist: function(){
var JSONPlaylist = JSON.stringify(this.playlist, null, '\t');
localStorage['playlist'] = JSON.stringify(this.playlist, null, '\t');
},
loadPlaylist: function(){
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment