Skip to content

Commit

Permalink
feat: expose checkdevicepermissions method (webex#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
mccarthytyler authored and GitHub Enterprise committed Apr 11, 2022
1 parent 8c18362 commit 41ed515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/media.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async function checkNavigatorPermissions(
* @param deviceKinds - Array of DeviceKind items.
* @returns True if device permissions exist, false if otherwise.
*/
async function checkDevicePermissions(deviceKinds: DeviceKind[]): Promise<boolean> {
export async function checkDevicePermissions(deviceKinds: DeviceKind[]): Promise<boolean> {
try {
const permissions = await checkNavigatorPermissions(deviceKinds);
if (permissions.every((permission: PermissionStatus) => permission.state === 'granted')) {
Expand Down

0 comments on commit 41ed515

Please sign in to comment.