Hacker News new | past | comments | ask | show | jobs | submit login

I suppose you're doing what might be a resource intensive task and want to be sure you don't kill the battery.

Granted I get folks might feel a rando website that is resource intensive would be horrific, but maybe we're talking about some specific web app / use case.




Even so, I think battery API is not the proper way to do it. Some sort of interrupt command (like UNIX has) may be better.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: