Add option to override Chromium args using env var

main
Elbert Alias 2 years ago
parent 8b72e07b6b
commit 2e15256e7a

@ -10,9 +10,12 @@ const Wappalyzer = require('./wappalyzer')
const { setTechnologies, setCategories, analyze, analyzeManyToMany, resolve } =
Wappalyzer
const { CHROMIUM_BIN, CHROMIUM_DATA_DIR, CHROMIUM_WEBSOCKET } = process.env
const { CHROMIUM_BIN, CHROMIUM_DATA_DIR, CHROMIUM_WEBSOCKET, CHROMIUM_ARGS } =
process.env
const chromiumArgs = [
const chromiumArgs = CHROMIUM_ARGS
? CHROMIUM_ARGS.split(' ')
: [
'--single-process',
'--no-sandbox',
'--no-zygote',