Fix flag for connected plugins

merge-requests/57/head
Moe 2019-03-07 21:27:40 -08:00
parent f87dd59039
commit 8928d777bb
1 changed files with 5 additions and 1 deletions

View File

@ -43,7 +43,11 @@ module.exports = function(s,config,lang){
pluginArray.push(name)
}
})
if(pluginArray.length > 0)s.isAtleatOneDetectorPluginConnected = true
if(pluginArray.length > 0){
s.isAtleatOneDetectorPluginConnected = true
}else{
s.isAtleatOneDetectorPluginConnected = false
}
s.detectorPluginArray = pluginArray
}
s.sendToAllDetectors = function(data){