mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
correction of bug oc-393 in using owncloud V2, V3, V4 with android browser :
JSON.parse(null) results in 'Uncaught illegal access' and not 'null' (see google for details) solved Signed-off-by: bourgeoa
This commit is contained in:
parent
e48f511606
commit
98e0db15a2
1 changed files with 1 additions and 0 deletions
|
|
@ -171,6 +171,7 @@ if(typeof localStorage !='undefined'){
|
|||
return localStorage.setItem(OC.localStorage.namespace+name,JSON.stringify(item));
|
||||
},
|
||||
getItem:function(name){
|
||||
if(localStorage.getItem(OC.localStorage.namespace+name)==null){return null;}
|
||||
return JSON.parse(localStorage.getItem(OC.localStorage.namespace+name));
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue