misc: fix some module require orders

This commit is contained in:
bordun 2020-04-03 12:34:39 +02:00
parent 940ccfb4b0
commit 7d54daf6d4
5 changed files with 19 additions and 8 deletions

View file

@ -13,6 +13,10 @@ var Osc = class Osc extends EventEmitter {
this.remoteControl = {}
this.serverTargets = []
setTimeout(()=>{
osc.remoteControl = require('./remote-control')
})
}
send(data) {
@ -76,5 +80,3 @@ var Osc = class Osc extends EventEmitter {
var osc = new Osc()
module.exports = osc
osc.remoteControl = require('./remote-control')