misc: client_sync global as bool
This commit is contained in:
parent
e07322a520
commit
6a0471c8fd
3 changed files with 4 additions and 4 deletions
|
|
@ -27,7 +27,7 @@ var Osc = class Osc extends EventEmitter {
|
|||
|
||||
} else {
|
||||
|
||||
if (CLIENT_SYNC === 0) data.noSync = 1
|
||||
if (!CLIENT_SYNC) data.noSync = 1
|
||||
|
||||
ipc.send('sendOsc', data)
|
||||
|
||||
|
|
@ -67,7 +67,7 @@ var Osc = class Osc extends EventEmitter {
|
|||
|
||||
receive(data){
|
||||
|
||||
if (data._rawTarget && CLIENT_SYNC === 0) return
|
||||
if (data._rawTarget && !CLIENT_SYNC) return
|
||||
|
||||
if (typeof this.remoteControl.exists === 'function' && this.remoteControl.exists(data.address)) this.remoteControl.exec(data.address, data.args)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue