From 7f7866da967c1a933d719b25da5e08e6b4605b85 Mon Sep 17 00:00:00 2001 From: AVVS Date: Mon, 29 Jul 2019 10:17:29 -0700 Subject: [PATCH] fix: correct invocation of defaultFlags() --- src/utils/chrome.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/chrome.js b/src/utils/chrome.js index f9149f3..0708a29 100644 --- a/src/utils/chrome.js +++ b/src/utils/chrome.js @@ -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'); @@ -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, ];