Skip to content
Snippets Groups Projects
Commit ab50c2ab authored by Myroslava Stavnycha's avatar Myroslava Stavnycha Committed by Fred Chasen
Browse files

connect to existing browser if browserWSEndpoint is set

parent 806791c0
No related branches found
No related tags found
No related merge requests found
...@@ -39,7 +39,7 @@ program ...@@ -39,7 +39,7 @@ program
"added to the HTML document before rendering. This is useful for " + "added to the HTML document before rendering. This is useful for " +
"adding custom pagedjs handlers. The option can be repeated.", "adding custom pagedjs handlers. The option can be repeated.",
collect, []) collect, [])
.option("--browserEndpoint", "Use a remote Chrome server with browserWSEndpoint") .option("--browserEndpoint <browserEndpoint>", "Use a remote Chrome server with browserWSEndpoint")
.parse(process.argv); .parse(process.argv);
function collect(value, previous) { function collect(value, previous) {
...@@ -115,6 +115,7 @@ if (typeof input === "string") { ...@@ -115,6 +115,7 @@ if (typeof input === "string") {
allowedPaths: program.allowedPaths, allowedPaths: program.allowedPaths,
allowedDomains: program.allowedDomains, allowedDomains: program.allowedDomains,
additionalScripts: program.additionalScript, additionalScripts: program.additionalScript,
browserEndpoint: program.browserEndpoint,
timeout: program.timeout, timeout: program.timeout,
}; };
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment