'Is there a way to detect there is no battery on the device in js?
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?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|


