File tree Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Expand file tree Collapse file tree 1 file changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -3,23 +3,6 @@ import lighthouse from 'lighthouse';
33import log from 'lighthouse-logger' ;
44import chromeLauncher from 'chrome-launcher' ;
55
6- // we set DEBUG_COLORS = 'true' to prevent the logger from prefixing a date when running in tty
7- // keep the old DEBUG_COLORS value so we can return it to the original value
8- let debugColorsSet = false ;
9- let debugColorsOriginalValue ;
10- if ( 'DEBUG_COLORS' in process . env ) {
11- debugColorsSet = true ;
12- debugColorsOriginalValue = process . env . DEBUG_COLORS ;
13- }
14- process . env . DEBUG_COLORS = 'true' ;
15-
16- // we can return the original value after requiring the dependencies
17- if ( debugColorsSet ) {
18- process . env . DEBUG_COLORS = debugColorsOriginalValue ;
19- } else {
20- delete process . env . DEBUG_COLORS ;
21- }
22-
236export const getBrowserPath = async ( ) => {
247 const browserFetcher = puppeteer . createBrowserFetcher ( ) ;
258 const revisions = await browserFetcher . localRevisions ( ) ;
You can’t perform that action at this time.
0 commit comments