script: setTimeout and clearTimeout should return an id

This commit is contained in:
jean-emmanuel 2022-01-08 17:40:33 +01:00
parent 52ecafd04b
commit e8ce280308

View file

@ -370,6 +370,8 @@ class ScriptVm extends Vm {
this.setValueOptions()
}, timeout)
return id
}
this.sandbox.contentWindow.clearTimeout = (id)=>{
@ -412,6 +414,8 @@ class ScriptVm extends Vm {
this.setValueOptions()
}, timeout)
return id
}
this.sandbox.contentWindow.clearInterval = (id)=>{