diff --git a/lib/launcher.js b/lib/launcher.js index 223456a5..233df315 100644 --- a/lib/launcher.js +++ b/lib/launcher.js @@ -18,6 +18,7 @@ process.on('unhandledRejection', error => { async function launch() { let app; + const carloArgs = process.env.NDB_CARLO_ARGS ? JSON.parse(process.env.NDB_CARLO_ARGS) : {}; try { app = await carlo.launch({ bgcolor: '#242424', @@ -28,7 +29,8 @@ async function launch() { argv: process.argv, nodeExecPath: process.execPath })).toString('base64') - } + }, + ...carloArgs }); } catch (e) { if (e.message !== 'Could not start the browser or the browser was already running with the given profile.')