Is there a way to detect there is no battery on the device in js?

266 views Asked by At

I have a minix ks controller which is working from plug and doesn't have a battery. However I'm getting battery data from JS navigator object:

enter image description here

This is what I'm getting from getBattery method:

enter image description here

But I need to detect there is no battery in the device to not show battery indicator on the screen. Is there any way in JS to detect there is no battery at all?

0

There are 0 answers