Skip to content
This repository was archived by the owner on Apr 7, 2020. It is now read-only.

Commit c32efd2

Browse files
committed
Allow appending Chromium CLI switches with env variable - CHROMIUM_CLI_SWITCHES
1 parent 86de146 commit c32efd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/server.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ const electronApp = require('electron').app;
1010
electronApp.commandLine.appendSwitch('disable-http-cache');
1111
electronApp.commandLine.appendSwitch('disable-gpu');
1212

13+
const cliSwitchEnv = process.env.CHROMIUM_CLI_SWITCHES;
14+
(cliSwitchEnv ? cliSwitchEnv.split(',') : []).map(electronApp.commandLine.appendSwitch);
15+
1316
const WindowPool = require('./window_pool');
1417
const auth = require('./auth');
1518
const {

0 commit comments

Comments
 (0)