File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ const Promise = require('bluebird');
22const noop = require ( 'lodash/noop' ) ;
33const ChromeRemote = require ( 'chrome-remote-interface' ) ;
44const { encode } = require ( '64' ) ;
5- const { Launcher } = require ( 'chrome-launcher' ) ;
5+ const { Launcher, defaultFlags } = require ( 'chrome-launcher' ) ;
66const { HttpStatusError } = require ( 'common-errors' ) ;
77const clone = require ( 'rfdc' ) ( { proto : false , circles : false } ) ;
88const debug = require ( 'debug' ) ( 'ms-printer:chrome' ) ;
@@ -54,6 +54,14 @@ class Chrome {
5454 handleSIGINT : false ,
5555 } , restOpts ) ;
5656
57+ // NOTE: this is a temporary workaround for
58+ // https://github.com/GoogleChrome/chrome-launcher/pull/162
59+ this . settings . ignoreDefaultFlags = true ;
60+ this . settings . chromeFlags = [
61+ ...defaultFlags ( ) ,
62+ ...this . settings . chromeFlags ,
63+ ] ;
64+
5765 // use custom logger if provided
5866 this . log = logger || {
5967 info : ( ...args ) => debug ( '[info]' , ...args ) ,
You can’t perform that action at this time.
0 commit comments