Skip to content
Snippets Groups Projects
Commit 67a73038 authored by Fred Chasen's avatar Fred Chasen
Browse files

Merge branch 'fix_defaults' into 'main'

Fix default printer values

See merge request !39
parents 02735f66 9d773eb7
No related branches found
No related tags found
1 merge request!39Fix default printer values
Pipeline #41720 passed with stages
in 1 minute and 7 seconds
......@@ -20,19 +20,19 @@ class Printer extends EventEmitter {
this.debug = typeof options.debug !== "undefined" ? options.debug : false;
this.headless = options.headless !== false;
this.allowLocal = options.allowLocal;
this.allowRemote = options.allowRemote;
this.allowLocal = options.allowLocal || false;
this.allowRemote = typeof options.allowRemote !== "undefined" ? options.allowRemote : true;
this.additionalScripts = options.additionalScripts || [];
this.allowedPaths = options.allowedPaths || [];
this.allowedDomains = options.allowedDomains || [];
this.ignoreHTTPSErrors = options.ignoreHTTPSErrors;
this.ignoreHTTPSErrors = options.ignoreHTTPSErrors || false;
this.browserWSEndpoint = options.browserEndpoint;
this.browserArgs = options.browserArgs;
this.overrideDefaultBackgroundColor = options.overrideDefaultBackgroundColor;
this.overrideDefaultBackgroundColor = options.overrideDefaultBackgroundColor || false;
this.timeout = options.timeout || 0;
this.closeAfter = typeof options.closeAfter !== "undefined" ? options.closeAfter : true;
this.emulateMedia = options.emulateMedia || "print";
this.styles = options.styles;
this.styles = options.styles || [];
this.pages = [];
......
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