mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
--remote-debugging-port
is our best friend in headless mode.
This commit is contained in:
parent
1a9271dd2f
commit
560bb02f7c
1 changed files with 2 additions and 0 deletions
2
vendor/assets/javascripts/run-qunit.js
vendored
2
vendor/assets/javascripts/run-qunit.js
vendored
|
@ -19,6 +19,8 @@ const CDP = require('chrome-remote-interface');
|
||||||
|
|
||||||
function launchChrome() {
|
function launchChrome() {
|
||||||
return chromeLauncher.launch({
|
return chromeLauncher.launch({
|
||||||
|
// Uncomment this to enable `--remote-debugging-port`
|
||||||
|
// port: 9222,
|
||||||
chromeFlags: [
|
chromeFlags: [
|
||||||
'--disable-gpu',
|
'--disable-gpu',
|
||||||
'--headless',
|
'--headless',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue