2 ms·
The API is only supported in Chromium browsers [0]. It was removed from Firefox and Safari. https://developer.mozilla.org/en-US/docs/Web/API/Battery_Status_API
by jakub_g 3y ago
The API is only supported in Chromium browsers [0]. It was removed from Firefox and Safari.
https://developer.mozilla.org/en-US/docs/Web/API/Battery_Status_API#browser_compatibility https://developer.mozilla.org/en-US/docs/Web/API/Battery_Sta...
- zimpenfish 3y agoSomewhat disappointed in macOS for giving the information to Chrome. I'd figure that to be the kind of sensor you need a special entitlement to read (but it may well be tricky to enforce.)
- internetter 3y agoSome browsers activate a low power mode when your battery reaches a certain threshold
- zimpenfish 3y agoThat should probably come from the OS as a power management event ("low power mode: on") rather than the browser being able to read the battery state directly and making its own decisions, surely.
- internetter 3y agoProbably, yeah