|
|
@ -25,6 +25,7 @@ const {
|
|
|
|
protocol: electronProtocol,
|
|
|
|
protocol: electronProtocol,
|
|
|
|
session,
|
|
|
|
session,
|
|
|
|
shell,
|
|
|
|
shell,
|
|
|
|
|
|
|
|
systemPreferences,
|
|
|
|
} = electron;
|
|
|
|
} = electron;
|
|
|
|
|
|
|
|
|
|
|
|
// FIXME Hardcoding appId to prevent build failrues on release.
|
|
|
|
// FIXME Hardcoding appId to prevent build failrues on release.
|
|
|
@ -983,3 +984,14 @@ function getThemeFromMainWindow() {
|
|
|
|
mainWindow.webContents.send('get-theme-setting');
|
|
|
|
mainWindow.webContents.send('get-theme-setting');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function askForMicrophoneAccess() {
|
|
|
|
|
|
|
|
const status = systemPreferences.getMediaAccessStatus('microphone');
|
|
|
|
|
|
|
|
if (status !== 'granted') {
|
|
|
|
|
|
|
|
systemPreferences.askForMediaAccess('microphone');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ipc.on('microphone-access', () => {
|
|
|
|
|
|
|
|
askForMicrophoneAccess();
|
|
|
|
|
|
|
|
});
|
|
|
|