Enables ContextIsolation

This commit is contained in:
Josh Perez 2023-01-12 19:24:59 -05:00 committed by GitHub
parent 4bbf5eb5d4
commit 9374832ea4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
83 changed files with 1009 additions and 1073 deletions

View file

@ -4,12 +4,12 @@
export async function requestMicrophonePermissions(
forCalling: boolean
): Promise<boolean> {
const microphonePermission = await window.getMediaPermissions();
const microphonePermission = await window.IPC.getMediaPermissions();
if (!microphonePermission) {
await window.showPermissionsPopup(forCalling, false);
await window.IPC.showPermissionsPopup(forCalling, false);
// Check the setting again (from the source of truth).
return window.getMediaPermissions();
return window.IPC.getMediaPermissions();
}
return true;