diff options
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) { |