You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Old issue, but still relevant. Confirmed on Windows 10, on a desktop computer without battery.
Related: On both MacOS and Linux, an error is thrown if no battery was found. It would be great if this was the case on Windows as well, then a try-catch block can be used to detect presence of a battery.
Alternatively, return null or false to indicate the absence of a battery to avoid the overhead of throwing an error.
I'm trying to use your module as dependencies on an electron app. The code i run is very simple and the promise resolve a NaN value.
The os is Windows 10.
The text was updated successfully, but these errors were encountered: