options.js 690 B

123456789101112131415161718192021222324
  1. module.exports = options = (headless, start) => {
  2. const options = {
  3. sessionId: 'BarBar',
  4. headless: headless,
  5. qrTimeout: 0,
  6. authTimeout: 0,
  7. restartOnCrash: start,
  8. cacheEnabled: false,
  9. useChrome: true,
  10. killProcessOnBrowserClose: true,
  11. throwErrorOnTosBlock: false,
  12. chromiumArgs: [
  13. '--no-sandbox',
  14. '--disable-setuid-sandbox',
  15. '--aggressive-cache-discard',
  16. '--disable-cache',
  17. '--disable-application-cache',
  18. '--disable-offline-load-stale-cache',
  19. '--disk-cache-size=0'
  20. ]
  21. }
  22. return options
  23. }