WebAPI/BatteryAPI: Difference between revisions

Jump to navigation Jump to search
m
Line 33: Line 33:


* ''mozBattery'' object might move to window.navigator.device;
* ''mozBattery'' object might move to window.navigator.device;
* Instead of having a mozBattery object in navigator.* we could instantiate an object with ''new mozBatteryStatus();'';
* Instead of having a mozBattery object in navigator.* we could instantiate an object with ''new mozBatteryStatus()'';
** In that case, we could allow authors to set the low and critical values threshold;
** In that case, we could allow authors to set the low and critical values threshold;
** In that case, not having a battery should be handled differently;
** In that case, not having a battery should be handled differently;
Confirmed users
368

edits

Navigation menu