fix an isue with persitent playlists inside the media player app

This commit is contained in:
Robin Appelman 2011-08-01 01:21:50 +02:00
parent 1933426e3e
commit 28a64bc2f8

View file

@ -49,9 +49,11 @@ $(document).ready(function() {
FileActions.setDefault('audio','Play');
FileActions.setDefault('application/ogg','Play');
}
if(typeof localStorage !== 'undefined'){
if(localStorage.hasOwnProperty('oc_playlist_items')){
loadPlayer();
if(typeof PlayList==='undefined'){
if(typeof localStorage !== 'undefined'){
if(localStorage.hasOwnProperty('oc_playlist_items')){
loadPlayer();
}
}
}
});