Skip to content

Commit

Permalink
docs: headless doc was missing flag (#2615)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
ebidel authored and paulirish committed Jun 29, 2017
1 parent 2d7aca8 commit 7b2e404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/headless-chrome.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const lighthouse = require('lighthouse');
const chromeLauncher = require('lighthouse/chrome-launcher');

function launchChromeAndRunLighthouse(url, flags = {}, config = null) {
return chromeLauncher.launch().then(chrome => {
return chromeLauncher.launch(flags).then(chrome => {
flags.port = chrome.port;
return lighthouse(url, flags, config).then(results =>
chrome.kill().then(() => results));
Expand Down

0 comments on commit 7b2e404

Please sign in to comment.