From 1a05e549eaa939aa67ed3141b825e072cdec8f11 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Thu, 29 Mar 2018 22:48:24 +0200 Subject: [PATCH] custom module: expose clearInterval & clearTimeout --- CHANGELOG.md | 1 + app/main/osc.js | 14 ++++++++------ 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6881d4d1..e639f9f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/app/main/osc.js b/app/main/osc.js index b2a05f44..630db73d 100644 --- a/app/main/osc.js +++ b/app/main/osc.js @@ -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 {