Add function remove() to OC.localeStorage
This commit is contained in:
parent
3c5185edab
commit
01bcdf5b53
1 changed files with 3 additions and 0 deletions
|
@ -662,6 +662,9 @@ if(typeof localStorage !=='undefined' && localStorage !== null){
|
|||
setItem:function(name,item){
|
||||
return localStorage.setItem(OC.localStorage.namespace+name,JSON.stringify(item));
|
||||
},
|
||||
removeItem:function(name,item){
|
||||
return localStorage.removeItem(OC.localStorage.namespace+name,JSON.stringify(item));
|
||||
},
|
||||
getItem:function(name){
|
||||
var item = localStorage.getItem(OC.localStorage.namespace+name);
|
||||
if(item===null) {
|
||||
|
|
Loading…
Reference in a new issue