Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Adding module for getting battery status #987
Merged. Thanks @ecneladis
I've confirmed this works on latest Firefox 28.
In my limited testing I noticed virtual machines and devices without a battery return
The API defined in this specification is used to determine the battery status of the hosting device. The information disclosed has minimal impact on privacy or fingerprinting, and therefore is exposed without permission grants. For example, authors cannot directly know if there is a battery or not in the hosting device. http://www.w3.org/TR/battery-status/