Skip to content
Snippets Groups Projects

When providing browserEndpoint option, pagedJS correctly connects to it

Merged Boris Budini requested to merge master into master
1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 2
1
@@ -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
};
};
if (program.forceTransparentBackground) {
if (program.forceTransparentBackground) {