electron/spec/fixtures/api/first-party-sets/command-line/main.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
331 B
JavaScript
Raw Normal View History

const { app } = require('electron');
app.whenReady().then(function () {
const hasSwitch = app.commandLine.hasSwitch('use-first-party-set');
const value = app.commandLine.getSwitchValue('use-first-party-set');
if (hasSwitch) {
process.stdout.write(JSON.stringify(value));
process.stdout.end();
}
app.quit();
});