mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-27 16:10:32 +00:00
only access for media access permissions on macos
This commit is contained in:
parent
97c89cf97c
commit
047c60205f
1 changed files with 4 additions and 2 deletions
|
|
@ -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 {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue