Skip to content

Commit 1e1478c

Browse files
authored
Update launch.js
1 parent 5dd7b31 commit 1e1478c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

puppeteer/browser/launch.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,12 @@ module.exports = function (RED) {
3737
});
3838

3939
// Launch a new browser with node's config
40+
var launchArgs = nodeConfig.arguments.split(',') || []
41+
launchArgs.push(`--remote-debugging-port=${nodeConfig.debugport}`)
4042
msg.puppeteer = {
4143
browser: await puppeteer.launch({
4244
...nodeConfig,
43-
args: [`--remote-debugging-port=${nodeConfig.debugport}`],
45+
args: launchArgs,
4446
}),
4547
};
4648
// Browser launched sucessfully

0 commit comments

Comments
 (0)