MozWakeLockinterface of the Wake Lock API tracks a wake lock set on any resource set on the device.
MozWakeLock.topicread-only property returns a
DOMStringwith the name of the resource locked.
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.