From 4280d195f5bec0aa23068c2b42f03d826311313a Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Fri, 3 Feb 2017 22:33:19 +0100 Subject: [PATCH] custom module: add init script support --- app/main/osc.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/main/osc.js b/app/main/osc.js index 5534e473..85d9b5d3 100644 --- a/app/main/osc.js +++ b/app/main/osc.js @@ -92,7 +92,8 @@ var customModule = (function(){ context = { console: console, sendOsc: sendOsc, - receiveOsc: receiveOsc + receiveOsc: receiveOsc, + setTimeout: setTimeout } try { @@ -144,6 +145,10 @@ oscServer.on('error', function (error) { oscServer.open() +if (customModule.init) { + customModule.init() +} + module.exports = {