mirror of
https://github.com/discourse/discourse.git
synced 2025-03-06 11:19:51 +00:00
Use an ENV to trigger --remote-debugging-port
instead.
This commit is contained in:
parent
3d5a55b55b
commit
71b2f8ae1d
12
vendor/assets/javascripts/run-qunit.js
vendored
12
vendor/assets/javascripts/run-qunit.js
vendored
@ -18,15 +18,19 @@ const CDP = require('chrome-remote-interface');
|
|||||||
(function() {
|
(function() {
|
||||||
|
|
||||||
function launchChrome() {
|
function launchChrome() {
|
||||||
return chromeLauncher.launch({
|
const options = {
|
||||||
// Uncomment this to enable `--remote-debugging-port`
|
|
||||||
// port: 9222,
|
|
||||||
chromeFlags: [
|
chromeFlags: [
|
||||||
'--disable-gpu',
|
'--disable-gpu',
|
||||||
'--headless',
|
'--headless',
|
||||||
'--no-sandbox'
|
'--no-sandbox'
|
||||||
]
|
]
|
||||||
});
|
}
|
||||||
|
|
||||||
|
if (process.env.REMOTE_DEBUG) {
|
||||||
|
options.port = 9222;
|
||||||
|
}
|
||||||
|
|
||||||
|
return chromeLauncher.launch(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
launchChrome().then(chrome => {
|
launchChrome().then(chrome => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user