Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

MozPowerManager.cpuSleepAllowed

This API is available on Firefox OS for internal applications only.

The MozPowerManager.cpuSleepAllowed property determines if the device's CPU will sleep after the screen is disabled. Setting this attribute to false will prevent the device from entering the suspend state.

Syntax

var isTheCPUAllowedToSleep = navigator.mozPower.cpuSleepAllowed

Value

Return a boolean.

Specification

Not part of any specification.

See also

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, teoli, abhishekp, kscarfone, Sheppy, Jeremie
 Last updated by: chrisdavidmills,