custom module: add receiveOsc()
This commit is contained in:
parent
c7820d1b7f
commit
dd07aabbd6
1 changed files with 3 additions and 2 deletions
|
|
@ -21,8 +21,9 @@ var customModule = (function(){
|
|||
var file = (function(){try {return fs.readFileSync(settings.read('customModule'),'utf8')} catch(err) {console.log('CustomModule Error: File not found: ' + settings.read('customModule'));return false}})(),
|
||||
mod,
|
||||
context = {
|
||||
console:console,
|
||||
sendOsc:sendOsc
|
||||
console: console,
|
||||
sendOsc: sendOsc,
|
||||
receiveOsc: receiveOsc
|
||||
}
|
||||
try {
|
||||
mod = vm.runInContext(file, vm.createContext(context))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue