2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-05 08:59:27 +08:00

--remote-debugging-port is our best friend in headless mode.

This commit is contained in:
Guo Xiang Tan 2018-04-12 08:56:58 +08:00
parent 1a9271dd2f
commit 560bb02f7c

View file

@ -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',