feat: expose system preferences to utility process (#42203)
* chore: expose system preferences to utility process * chore: add tests, doc changes and module-list update * relative link * use @ * fix test * chore: disable linux test * kick * noop on windows utility process
This commit is contained in:
parent
37608933ae
commit
ba8ad4716b
7 changed files with 29 additions and 5 deletions
6
spec/fixtures/api/utility-process/expose-main-process-module.js
vendored
Normal file
6
spec/fixtures/api/utility-process/expose-main-process-module.js
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
const { systemPreferences } = require('electron');
|
||||
|
||||
const status = systemPreferences.getMediaAccessStatus('screen');
|
||||
process.parentPort.on('message', () => {
|
||||
process.parentPort.postMessage(status);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue