Library migration #36

Merged
dorian merged 62 commits from library_migration into master 2024-10-17 17:52:36 +02:00
Showing only changes of commit 2d60e2beeb - Show all commits

View file

@ -164,15 +164,16 @@ ToolBar {
} }
function getLaneState(extensions) { function getLaneState(extensions) {
var batteryWarning = false;
for(var i = 0; i < extensions.length; i++) { for(var i = 0; i < extensions.length; i++) {
console.log(JSON.stringify(extensions[i])) console.log(JSON.stringify(extensions[i]))
if(extensions[i]["state"] !== ScStw.ExtensionConnected || extensions[i]["batteryState"] === ScStw.BatteryCritical) if(extensions[i]["state"] !== ScStw.ExtensionConnected || extensions[i]["batteryState"] === ScStw.BatteryCritical)
return 2 return 2
if(extensions[i]["batteryState"] === ScStw.BatteryWarning) if(extensions[i]["batteryState"] === ScStw.BatteryWarning)
return 1 batteryWarning = true
} }
return 0 return batteryWarning ? 1:0
} }
Behavior on border.color { Behavior on border.color {