Skip to content
Snippets Groups Projects
Commit ca998e24 authored by Myroslava Stavnycha's avatar Myroslava Stavnycha
Browse files

connect to existing browser if browserWSEndpoint is set

parent 996396ab
No related branches found
No related tags found
1 merge request!17When providing browserEndpoint option, pagedJS correctly connects to it
......@@ -39,7 +39,7 @@ program
"added to the HTML document before rendering. This is useful for " +
"adding custom pagedjs handlers. The option can be repeated.",
collect, [])
.option("--browserEndpoint", "Use a remote Chrome server with browserWSEndpoint")
.option("--browserEndpoint <browserEndpoint>", "Use a remote Chrome server with browserWSEndpoint")
.parse(process.argv);
function collect(value, previous) {
......@@ -115,6 +115,7 @@ if (typeof input === "string") {
allowedPaths: program.allowedPaths,
allowedDomains: program.allowedDomains,
additionalScripts: program.additionalScript,
browserEndpoint: program.browserEndpoint
};
if (program.forceTransparentBackground) {
......
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