Created
June 11, 2019 06:55
-
-
Save vitaliy-bobrov/9fbe22ce20c7027613127d8fc350fa85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Getting permission status. | |
const micStatus = await navigator.permissions.query({name: 'microphone'}); | |
console.log(micStatus); // state: "prompt" | |
// Reset permission to initial state. | |
await navigator.permissions.revoke({name: 'microphone'}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment