get rid of some js errors on the login screen
This commit is contained in:
parent
6b9cf8d2d5
commit
26ac7f0f1d
2 changed files with 2 additions and 1 deletions
|
@ -49,6 +49,7 @@ $(document).ready(function() {
|
|||
FileActions.setDefault('audio','Play');
|
||||
FileActions.setDefault('application/ogg','Play');
|
||||
}
|
||||
var oc_current_user=OC.currentUser;
|
||||
if(typeof PlayList==='undefined'){
|
||||
if(typeof localStorage !== 'undefined' && localStorage){
|
||||
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'){
|
||||
|
|
|
@ -27,7 +27,7 @@ t.cache={};
|
|||
|
||||
OC={
|
||||
webroot:oc_webroot,
|
||||
currentUser:oc_current_user,
|
||||
currentUser:(typeof oc_current_user!=='undefined')?oc_current_user:false,
|
||||
coreApps:['files','admin','log','search','settings','core','3rdparty'],
|
||||
/**
|
||||
* get an absolute url to a file in an appen
|
||||
|
|
Loading…
Reference in a new issue