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

navigator.getBattery() is not deprecated #5227

Merged
merged 3 commits into from
May 25, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion files/en-us/web/api/navigator/getbattery/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- Reference
- getBattery
---
<div>{{ ApiRef("Battery API") }}{{deprecated_header}}</div>
<div>{{ ApiRef("Battery API") }}</div>

<p>The <strong><code>getBattery()</code></strong> method provides information about the
system's battery. It returns a battery promise, which is resolved in a
Expand Down
2 changes: 2 additions & 0 deletions files/en-us/web/api/navigator/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ <h2 id="Methods">Methods</h2>
<dd>Returns <code>true</code> if a call to <code>Navigator.share()</code> would succeed.</dd>
<dt>{{domxref("Navigator.clearAppBadge()")}}</dt>
<dd>Clears a badge on the current app's icon and returns a {{jsxref("Promise")}} that resolves with {{jsxref("undefined")}}.</dd>
<dt>{{domxref("Navigator.getBattery()")}}</dt>
<dd>Returns a promise that resolves to a {{domxref("BatteryManager")}} object that you can use to get information about the battery charging status.</dd>
hamishwillee marked this conversation as resolved.
Show resolved Hide resolved
<dt>{{domxref("Navigator.registerProtocolHandler()")}}</dt>
<dd>Allows web sites to register themselves as a possible handler for a given protocol.</dd>
<dt>{{domxref("Navigator.requestMediaKeySystemAccess()")}}</dt>
Expand Down