fix: handle camera permission crash (#5372)

This commit is contained in:
Gleidson Daniel Silva 2023-11-29 14:43:03 -03:00 committed by GitHub
parent 653201022f
commit af83fc236f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -64,8 +64,12 @@ export const useVideoConf = (
}); });
if (!permission?.granted) { if (!permission?.granted) {
requestPermission(); try {
await requestPermission();
handleAndroidBltPermission(); handleAndroidBltPermission();
} catch (error) {
log(error);
}
} }
} }
} catch (error) { } catch (error) {