Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

battery percentage js

navigator.getBattery()
  .then(function(battery) {
    console.log(battery.level);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #battery #percentage #js
ADD COMMENT
Topic
Name
1+5 =