Skip to content

Commit

Permalink
fix: correct invocation of defaultFlags()
Browse files Browse the repository at this point in the history
  • Loading branch information
AVVS committed Jul 29, 2019
1 parent 1ec011c commit 7f7866d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/chrome.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const Promise = require('bluebird');
const noop = require('lodash/noop');
const ChromeRemote = require('chrome-remote-interface');
const { encode } = require('64');
const { Launcher, defaultFlags } = require('chrome-launcher');
const { Launcher } = require('chrome-launcher');
const { HttpStatusError } = require('common-errors');
const clone = require('rfdc')({ proto: false, circles: false });
const debug = require('debug')('ms-printer:chrome');
Expand Down Expand Up @@ -58,7 +58,7 @@ class Chrome {
// https://github.com/GoogleChrome/chrome-launcher/pull/162
this.settings.ignoreDefaultFlags = true;
this.settings.chromeFlags = [
...defaultFlags(),
...Launcher.defaultFlags(),
...this.settings.chromeFlags,
];

Expand Down

0 comments on commit 7f7866d

Please sign in to comment.