3 ms·
Wow, I'm surprised how much info is available in desktop chrome. Events get fired when I unplug my laptop and plug it back in: https://www.audero.it/demo/batter
by brlewis 10y ago
Wow, I'm surprised how much info is available in desktop chrome. Events get fired when I unplug my laptop and plug it back in: https://www.audero.it/demo/battery-status-api-demo.html https://www.audero.it/demo/battery-status-api-demo.html
I searched Chrome settings for "battery" and found nothing. I did find this article with instructions for turning it off in Firefox: https://www.hackread.com/smartphone-laptop-battery-invading-privacy/ https://www.hackread.com/smartphone-laptop-battery-invading-...
I'm not opposed to the concept of a battery API, but as others have commented, it would be just as useful with a lot less granularity.
- battre 10y agoChrome has fixed the granularity a long time ago https://chromium.googlesource.com/chromium/src/+/637776d1183dd286f040349341e1881023851ef9 https://chromium.googlesource.com/chromium/src/+/637776d1183... and I guess most other browsers have fixed it as well.
- brlewis 10y agoThey've closed the window but left the door open. See the link I posted. When the page knows "Battery will be discharged in 18365 seconds" it doesn't matter that the battery percentage is only two digits.