Permissions API allows web apps to query for the permission status or request the permission for the features that might require user consent such as camera, geolocation, microphone, or notifications.
https://nectar.website/demo/web-apis/permissions/arrow-up-right
You can refer to the code present in /partials/web-apis/permissions.html file and use it accordingly.
/partials/web-apis/permissions.html
https://developer.mozilla.org/en-US/docs/Web/API/Permissions_APIarrow-up-right
Last updated 3 years ago