diff options
author | Robin Appelman <icewind1991@gmail.com> | 2011-08-04 01:19:21 +0200 |
---|---|---|
committer | Robin Appelman <icewind1991@gmail.com> | 2011-08-04 01:19:21 +0200 |
commit | 93b342ee391147895b9a9aeabc0050489fc0ee02 (patch) | |
tree | 4c401ef8c7eab7ee521eb7efe9c3d65771da7459 /apps/media/js/loader.js | |
parent | e209511f86ec33222f92c80db1c59c3305bef9d5 (diff) | |
download | nextcloud-server-93b342ee391147895b9a9aeabc0050489fc0ee02.tar.gz nextcloud-server-93b342ee391147895b9a9aeabc0050489fc0ee02.zip |
only load the music player outside the media app if the media app isnt already open in another tab
Diffstat (limited to 'apps/media/js/loader.js')
-rw-r--r-- | apps/media/js/loader.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/media/js/loader.js b/apps/media/js/loader.js index 06449abf521..c49d90cf3eb 100644 --- a/apps/media/js/loader.js +++ b/apps/media/js/loader.js @@ -51,7 +51,7 @@ $(document).ready(function() { } if(typeof PlayList==='undefined'){ if(typeof localStorage !== 'undefined'){ - if(localStorage.hasOwnProperty(oc_current_user+'oc_playlist_items') && localStorage.getItem(oc_current_user+'oc_playlist_items')!='[]'){ + if(localStorage.hasOwnProperty(oc_current_user+'oc_playlist_items') && localStorage.getItem(oc_current_user+'oc_playlist_items')!='[]' && localStorage.getItem(oc_current_user+'oc_playlist_active')!='true'){ loadPlayer(); } } |