electron/spec/fixtures/api/first-party-sets/command-line/main.js
Keeley Hammond e83c3ec744
test: add first-party-set chromium tests (#34827)
test: add first-part-set chromium feature tests
2022-07-07 15:14:53 -04:00

12 lines
331 B
JavaScript

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();
});