50ea20168d
* 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 Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: George Xu <33054982+georgexu99@users.noreply.github.com>
6 lines
204 B
JavaScript
6 lines
204 B
JavaScript
const { systemPreferences } = require('electron');
|
|
|
|
const status = systemPreferences.getMediaAccessStatus('screen');
|
|
process.parentPort.on('message', () => {
|
|
process.parentPort.postMessage(status);
|
|
});
|