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