`--remote-debugging-port` is our best friend in headless mode.
This commit is contained in:
parent
1a9271dd2f
commit
560bb02f7c
|
@ -19,6 +19,8 @@ const CDP = require('chrome-remote-interface');
|
|||
|
||||
function launchChrome() {
|
||||
return chromeLauncher.launch({
|
||||
// Uncomment this to enable `--remote-debugging-port`
|
||||
// port: 9222,
|
||||
chromeFlags: [
|
||||
'--disable-gpu',
|
||||
'--headless',
|
||||
|
|
Loading…
Reference in New Issue