8 lines
178 B
JavaScript
8 lines
178 B
JavaScript
|
|
||
|
// Battery API
|
||
|
// https://developer.mozilla.org/en/DOM/window.navigator.mozBattery
|
||
|
// By: Paul Sayre
|
||
|
|
||
|
Modernizr.addTest('battery',
|
||
|
!!Modernizr.prefixed('battery', navigator)
|
||
|
);
|