Skip to content
This repository was archived by the owner on Apr 22, 2022. It is now read-only.

Commit 9166c49

Browse files
committed
Fixed camera and mic permissions prompt
1 parent 3326447 commit 9166c49

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/Application.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ Ext.define('Rambox.Application', {
7777
,text: 'Grant permissions'
7878
,ui: 'decline'
7979
,handler: async function(btn) {
80-
ipc.send('grantPermissions');
80+
await require('electron').remote.systemPreferences.askForMediaAccess('microphone');
81+
await require('electron').remote.systemPreferences.askForMediaAccess('camera');
8182
Ext.cq1('app-main').removeDocked(btn.up('toolbar'), true);
8283
}
8384
}

0 commit comments

Comments
 (0)