custom module: expose clearInterval & clearTimeout

This commit is contained in:
jean-emmanuel 2018-03-29 22:48:24 +02:00
parent d77c219c52
commit 1a05e549ea
2 changed files with 9 additions and 6 deletions

View file

@ -6,6 +6,7 @@
- session list: fix "remove from history" always removing the first item in the list
- custom module
- expose `setInterval`
- expose `clearTimeout` and `clearInterval`
- prevent errors when failing to run the module

View file

@ -133,12 +133,14 @@ var customModule = (function(){
})(),
mod,
context = {
console: console,
sendOsc: sendOsc,
receiveOsc: receiveOsc,
setTimeout: setTimeout,
setInterval: setInterval,
settings: settings
console,
sendOsc,
receiveOsc,
setTimeout,
clearTimeout,
setInterval,
clearInterval,
settings
}
try {