only access for media access permissions on macos

This commit is contained in:
liamcottle
2024-05-28 21:52:05 +12:00
parent 97c89cf97c
commit 047c60205f

View File

@@ -66,8 +66,10 @@ app.whenReady().then(async () => {
exe = path.join(__dirname, '..', 'build/exe/ReticulumWebChat');
}
// ask user for microphone access for audio calls to work
await systemPreferences.askForMediaAccess('microphone');
// ask mac users for microphone access for audio calls to work
if(process.platform === "darwin"){
await systemPreferences.askForMediaAccess('microphone');
}
try {