https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getBattery
Navigator: getBattery() method - Web APIs | MDN
The getBattery() method provides information about the system's battery. It returns a battery promise, which resolves with a BatteryManager object providing...
web apisnavigatormethodmdn