misc: client_sync global as bool

This commit is contained in:
jean-emmanuel 2022-10-18 10:20:50 +02:00
parent e07322a520
commit 6a0471c8fd
3 changed files with 4 additions and 4 deletions

View file

@ -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)