How to use the modernizr.batteryapi function in modernizr

To help you get started, we’ve selected a few modernizr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SeedVault / Hadron / src / hadron.js View on Github external
checkDeviceCapabilites() {
      this.hasWebGL              = Modernizr.webgl;
      this.hasWebGLExtensions    = Modernizr.webglextensions;
      this.hasSpeechSynthesis    = Modernizr.speechsynthesis;
      this.hasSpeechRecognition  = Modernizr.speechrecognition;
      this.hasBatteryAPI         = Modernizr.batteryapi;
      this.hasLowBattery         = Modernizr.lowbattery;
      this.hasLowBandwidth       = Modernizr.lowbandwidth;