browsirai 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server.js CHANGED
@@ -519,7 +519,8 @@ async function launchChromeWithDebugging(port = 9222, headless = false) {
519
519
  }
520
520
  const args = [
521
521
  `--remote-debugging-port=${targetPort}`,
522
- "--remote-allow-origins=*"
522
+ "--remote-allow-origins=*",
523
+ "--no-sandbox"
523
524
  ];
524
525
  if (dataDir) {
525
526
  args.push(`--user-data-dir=${dataDir}`, "--no-first-run", "--no-default-browser-check", "--disable-extensions");
@@ -632,7 +633,8 @@ async function launchHeadlessChrome() {
632
633
  "--no-first-run",
633
634
  "--no-default-browser-check",
634
635
  "--disable-extensions",
635
- "--disable-gpu"
636
+ "--disable-gpu",
637
+ "--no-sandbox"
636
638
  ], {
637
639
  detached: true,
638
640
  stdio: "ignore"