Skip to content

Commit

Permalink
🐛 Fix TypeError
Browse files Browse the repository at this point in the history
TypeError: Cannot read property 'split' of undefined

Closes #24
  • Loading branch information
andreasonny83 committed Jan 31, 2019
1 parent 3a5ffa2 commit 2e2bf4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/lighthouse-reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async function writeReport(
lighthouseFlags,
) {
const { chromeFlags, ...extraLHFlags } = lighthouseFlags;
const customChromeFlags = chromeFlags.split(',');
const customChromeFlags = chromeFlags ? chromeFlags.split(',') : [];

const lighouseResult = await launchChromeAndRunLighthouse(
url,
Expand Down

0 comments on commit 2e2bf4f

Please sign in to comment.