123456789101112131415161718192021222324 |
- module.exports = options = (headless, start) => {
- const options = {
- sessionId: 'BarBar',
- headless: headless,
- qrTimeout: 0,
- authTimeout: 0,
- restartOnCrash: start,
- cacheEnabled: false,
- useChrome: true,
- killProcessOnBrowserClose: true,
- throwErrorOnTosBlock: false,
- chromiumArgs: [
- '--no-sandbox',
- '--disable-setuid-sandbox',
- '--aggressive-cache-discard',
- '--disable-cache',
- '--disable-application-cache',
- '--disable-offline-load-stale-cache',
- '--disk-cache-size=0'
- ]
- }
- return options
- }
|