script: fix storage methods
This commit is contained in:
parent
c06ef537b4
commit
c6a7d34e90
2 changed files with 8 additions and 2 deletions
|
|
@ -222,8 +222,8 @@ class ScriptVm extends Vm {
|
|||
this.sandbox.contentWindow.storage = {
|
||||
|
||||
setItem: (k, v)=>cache.set('script.' + k, v),
|
||||
getItem: (k)=>cache.get('script.' + k, v),
|
||||
removeItem: (k)=>cache.remove('script.' + k, v),
|
||||
getItem: (k)=>cache.get('script.' + k),
|
||||
removeItem: (k)=>cache.remove('script.' + k),
|
||||
clear: ()=>cache.clear('script.')
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue