Simplify permissions popup IPC
This commit is contained in:
parent
c822c45310
commit
50dc534164
7 changed files with 18 additions and 25 deletions
|
@ -3,7 +3,7 @@
|
|||
|
||||
export async function requestCameraPermissions(): Promise<boolean> {
|
||||
if (!(await window.getMediaCameraPermissions())) {
|
||||
await window.showCallingPermissionsPopup(true);
|
||||
await window.showPermissionsPopup(true, true);
|
||||
|
||||
// Check the setting again (from the source of truth).
|
||||
return window.getMediaCameraPermissions();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue