Add function remove() to OC.localeStorage

This commit is contained in:
Thomas Tanghus 2014-03-10 16:22:52 +01:00
parent 3c5185edab
commit 01bcdf5b53

View file

@ -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) {