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:
This is what I'm getting from getBattery method:
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?