aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-03-11 12:40:14 +0100
committerVincent Petry <pvince81@owncloud.com>2014-03-11 12:40:14 +0100
commita53df71b4adf9133b0d32547360dceb083ef0a6c (patch)
tree4b29ac81d24b143217a222f5bbc584cae7f1f277 /core
parent0e4d522dd90eec52828cab5e2c1d0ba7ea6a8f27 (diff)
parent5e6f0dcc6d83ce319ea2685cedbc9b23c7f33c27 (diff)
downloadnextcloud-server-a53df71b4adf9133b0d32547360dceb083ef0a6c.tar.gz
nextcloud-server-a53df71b4adf9133b0d32547360dceb083ef0a6c.zip
Merge pull request #7652 from owncloud/localStorage_remove
Add OC.localStorage.removeItem()
Diffstat (limited to 'core')
-rw-r--r--core/js/js.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 77aadd23e03..841f3a769f1 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -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);
+ },
getItem:function(name){
var item = localStorage.getItem(OC.localStorage.namespace+name);
if(item===null) {