battery-wid

This commit is contained in:
Zacharias-Brohn
2026-02-11 16:10:53 +01:00
parent a717c8c18c
commit 0a543a5297
+1 -1
View File
@@ -16,7 +16,7 @@ Singleton {
function findDevice(): UPowerDevice { function findDevice(): UPowerDevice {
for ( let i = 0; i < root.devices.length; i++ ) { for ( let i = 0; i < root.devices.length; i++ ) {
console.log(root.devices[i]) console.log(root.devices[i])
if ( root.devices[i].type === "Battery" ) { if ( root.devices[i].isLaptopBattery ) {
return root.devices[i]; return root.devices[i];
} }
} }