mirror of
https://git.undefined-dev.fr/Blendman974/faceclaw.git
synced 2026-11-29 13:03:11 +00:00
Add location support for EvenHub apps
This commit is contained in:
1 parent
bcd1866b9f
commit
83b3049045
2 files changed
+98
-6
No files matched your search
@@ -91,6 +91,11 @@ export function isMicrophonePermission(name: EvenHubPermissionName): boolean {
|
||||
return MICROPHONE_PERMISSIONS.has(name);
|
||||
}
|
||||
|
||||
/** Whether the declared set includes a permission by name. */
|
||||
export function permissionsInclude(permissions: EvenHubPermission[], name: EvenHubPermissionName): boolean {
|
||||
return permissions.some((permission) => permission.name === name);
|
||||
}
|
||||
|
||||
/** Whether the declared set includes any microphone permission. */
|
||||
export function permissionsIncludeMicrophone(permissions: EvenHubPermission[]): boolean {
|
||||
return permissions.some((permission) => isMicrophonePermission(permission.name));
|
||||
|
||||
Reference in new issue
Block a user