custom module: add init script support
This commit is contained in:
parent
fa46d1c31e
commit
4280d195f5
1 changed files with 6 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue