Lock

class Lock(source)

The Lock interface of the Web Locks API provides the name and mode of a lock. Available only in secure contexts.

MDN Reference

Properties

Link copied to clipboard

The mode read-only property of the Lock interface returns the access mode passed to LockManager.request() when the lock was requested.

Link copied to clipboard

The name read-only property of the Lock interface returns the name passed to The name of a lock is passed by script when the lock is requested.