script: add unfocus function (built-in client only)
This commit is contained in:
parent
ce5fa36cd6
commit
e99cdaa677
3 changed files with 19 additions and 1 deletions
|
|
@ -278,8 +278,14 @@ class ScriptVm extends Vm {
|
|||
|
||||
}
|
||||
|
||||
this.sandbox.contentWindow.unfocus = ()=>{
|
||||
|
||||
console.debug('ELECTRON.BLUR()')
|
||||
|
||||
}
|
||||
|
||||
for (var imports of ['set', 'get', 'getProp', 'updateProp', 'send', 'httpGet', 'stateGet', 'stateSet', 'storage',
|
||||
'setInterval', 'clearInterval', 'setTimeout', 'clearTimeout']) {
|
||||
'setInterval', 'clearInterval', 'setTimeout', 'clearTimeout', 'unfocus']) {
|
||||
this.sanitize(this.sandbox.contentWindow[imports])
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue