Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser implementation is broken #74

Open
janpio opened this issue Apr 26, 2019 · 0 comments
Open

Browser implementation is broken #74

janpio opened this issue Apr 26, 2019 · 0 comments
Labels

Comments

@janpio
Copy link
Member

janpio commented Apr 26, 2019

The browser implementation of this plugin uses navigator.getBattery:

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getBattery

Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Current Firefox and Edge don't support it, Chrome still seems to:
https://developer.mozilla.org/en-US/docs/Web/API/Battery_Status_API#Browser_compatibility

As far as I know there is no proper replacement.

@janpio janpio added the bug label May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant