最終更新:2020-07-30 (木) 05:41:47 (117d)  

Permissions API
Top / Permissions API

https://developer.mozilla.org/en-US/docs/Web/API/Permissions_API

navigator.permissions

navigator.permissions.query?()

  • Returns the user permission status for a given API.

navigator.permissions.request?()

  • Requests permission to use a given API. This is not currently supported in any browser.

navigator.permissions.requestAll?()

  • Requests permission to use a given set of APIs. This is not currently supported in any browser.

navigator.permissions.revoke?()

  • Revokes the permission currently set on a given API.