Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
  • Loading branch information
SkillfulElectro authored Jun 10, 2024
1 parent 5bdf8ee commit 82024c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function createWindow() {
win.setIcon(ic_path);
})

ipcMain.handle('ask-camera-permission', async () => {
ipcMain.handle('get-camera-access', async () => {
try {
const cameraPermission = await systemPreferences.askForMediaAccess('camera');
return cameraPermission; // true if granted, false if denied
Expand All @@ -232,7 +232,7 @@ function createWindow() {
}
});

ipcMain.handle('ask-microphone-permission', async () => {
ipcMain.handle('get-microphone-access', async () => {
try {
const microphonePermission = await systemPreferences.askForMediaAccess('microphone');
return microphonePermission; // true if granted, false if denied
Expand Down

0 comments on commit 82024c9

Please sign in to comment.