MozWakeLock.unlock() method releases the lock on the resource. If several locks have been taken on the resource, each of them needs to be released individually.
- If the lock has already been unlocked, the
var lock = window.navigator.requestWakeLock('screen');
... // do stuff lock.unlock(); // unlock the screen resource
Not part of any specification
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.