How to check if browser supports navigator.permissions.query({ name: 'microphone' })
?
Firefox has error when using the above code:
Uncaught (in promise) TypeError: 'microphone' (value of 'name' member of PermissionDescriptor) is not a valid value for enumeration PermissionName.
But surprizingly when you log this code in firefox you get "function" !!!:
typeof navigator.permissions.query
How to check if browser supports navigator.permissions.query({ name: 'microphone' })
?