minor fix in extension overview
This commit is contained in:
parent
afbbd6b645
commit
2d60e2beeb
1 changed files with 3 additions and 2 deletions
|
@ -164,15 +164,16 @@ ToolBar {
|
|||
}
|
||||
|
||||
function getLaneState(extensions) {
|
||||
var batteryWarning = false;
|
||||
for(var i = 0; i < extensions.length; i++) {
|
||||
console.log(JSON.stringify(extensions[i]))
|
||||
if(extensions[i]["state"] !== ScStw.ExtensionConnected || extensions[i]["batteryState"] === ScStw.BatteryCritical)
|
||||
return 2
|
||||
if(extensions[i]["batteryState"] === ScStw.BatteryWarning)
|
||||
return 1
|
||||
batteryWarning = true
|
||||
}
|
||||
|
||||
return 0
|
||||
return batteryWarning ? 1:0
|
||||
}
|
||||
|
||||
Behavior on border.color {
|
||||
|
|
Reference in a new issue