diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2014-03-10 16:22:52 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2014-03-10 16:22:52 +0100 |
commit | 01bcdf5b53d44510176ca1487116c171379def06 (patch) | |
tree | 1b5f292b5334953f87e34d5c593214b359a084c5 /core/js | |
parent | 3c5185edab2352ce0d825870ce2b4964a28a777b (diff) | |
download | nextcloud-server-01bcdf5b53d44510176ca1487116c171379def06.tar.gz nextcloud-server-01bcdf5b53d44510176ca1487116c171379def06.zip |
Add function remove() to OC.localeStorage
Diffstat (limited to 'core/js')
-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..78eeceb2b0c 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,JSON.stringify(item)); + }, getItem:function(name){ var item = localStorage.getItem(OC.localStorage.namespace+name); if(item===null) { |