lint & custom module lack detection
This commit is contained in:
parent
93363026e3
commit
cc45928ebf
2 changed files with 4 additions and 5 deletions
|
|
@ -157,9 +157,11 @@ var bindCallbacks = function(callbacks) {
|
|||
|
||||
var clientInfos = {address: client.address, id: client.id}
|
||||
|
||||
var customModule = settings.read('custom-module')
|
||||
|
||||
for (let name in callbacks) {
|
||||
client.on(name, (data)=>{
|
||||
if (osc.customModule) {
|
||||
if (customModule) {
|
||||
osc.customModuleEventEmitter.emit(name, data, clientInfos)
|
||||
}
|
||||
callbacks[name](data, client.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue