diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-03-11 12:40:14 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-03-11 12:40:14 +0100 |
commit | a53df71b4adf9133b0d32547360dceb083ef0a6c (patch) | |
tree | 4b29ac81d24b143217a222f5bbc584cae7f1f277 /core | |
parent | 0e4d522dd90eec52828cab5e2c1d0ba7ea6a8f27 (diff) | |
parent | 5e6f0dcc6d83ce319ea2685cedbc9b23c7f33c27 (diff) | |
download | nextcloud-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.js | 3 |
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) { |