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

@ -28,7 +28,7 @@ document.documentElement.style.setProperty('font-size', PXSCALE + 'px')
window.DOUBLE_TAP_TIME = ENV.doubletap ? parseInt(ENV.doubletap) : 375
window.CLIENT_SYNC = parseInt(ENV.clientSync) === 0 ? 0 : 1
window.CLIENT_SYNC = parseInt(ENV.clientSync) !== 0
window.IOS_TOUCH_POLLING = false

View file

@ -59,7 +59,7 @@ module.exports = {
stateSend:function(){
if (CLIENT_SYNC === 0) return
if (!CLIENT_SYNC) return
notifications.add({
icon: 'wifi',

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)